fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int V, A, B, C;
  6. cin >> V >> A >> B >> C;
  7.  
  8. if (V < A) {
  9. cout << 'F';
  10. }
  11. else if (V < A + B) {
  12. cout << 'M';
  13. }
  14. else if (V < A + B + C) {
  15. cout << 'T';
  16. }
  17.  
  18. return 0;
  19. }
  20.  
Success #stdin #stdout 0s 5320KB
stdin
30 10 10 10
stdout
Standard output is empty