比赛 20241024 评测结果 AAAAA
题目名称 吃糖果游戏 最终得分 100
用户昵称 ┭┮﹏┭┮ 运行时间 0.021 s
代码语言 C++ 内存使用 3.35 MiB
提交时间 2024-10-24 08:14:20
显示代码纯文本
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pii pair<int,int>
#define fi first
#define in inline
#define se second
#define mp make_pair
#define pb push_back
const int N = 110;

ll read(){
	ll x = 0,f = 1;char c = getchar();
	for(;c < '0' || c > '9';c = getchar())if(c == '-')f = -1;
	for(;c >= '0' && c <= '9';c = getchar())x = ((x<<1) + (x<<3) + c-'0') % 5;
	return x % 5;
}


int main(){
	freopen("candy.in","r",stdin);
	freopen("candy.out","w",stdout);
	for(int i = 1;i <= 10;i++){
		int x = read(),y = read();
		if((x % 5 == 2 || x % 5 == 3) && (y % 5 == 2 || y % 5 == 3))printf("S\n");
		else printf("M\n");
	}

	return 0;

}