Accepted
Code
#include<bits/stdc++.h>
using namespace std;
int main(){
int x, a, b;
cin >> x >> a >> b;
int res1 = abs(a - x);
int res2 = abs(b - x);
if(res1 > res2){
cout << "3vai" << endl;
} else if(res2 > res1){
cout << "7vai" << endl;
} else {
cout << "mojo" << endl;
}
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1179 7vai , 3vai or mojo ?
- Contest
- Intra LU IEEE Beginner Programming Contest
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2025-02-26 05:42:02
- Judged At
- 2025-02-26 05:42:02
- Judged By
- Score
- 100
- Total Time
- 4ms
- Peak Memory
- 536.0 KiB