0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-24 03:31:59 +00:00
Baoshuo Ren 2022-03-12 20:10:06 +08:00
parent 208a2c73b5
commit 05abb87d52
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

21
AtCoder/ABC243/A/A.cpp Normal file
View File

@ -0,0 +1,21 @@
#include <iostream>
using std::cin;
using std::cout;
const char endl = '\n';
int v, a, b, c;
int main() {
std::ios::sync_with_stdio(false);
cin >> v >> a >> b >> c;
v %= a + b + c;
if (v < a) {
cout << "F" << endl;
} else if (v < a + b) {
cout << "M" << endl;
} else {
cout << "T" << endl;
}
return 0;
}