Accepted
Code
#include<iostream>
using namespace std;
int main(){
int x, a, b;
cin >> x >> a >> b;
if((-1000 <= x, a, b) && (x, a , b <= 1000)){
int y, z;
y = abs(x - a);
z = abs(x - b);
if(y < z){
cout << "7vai";
}
else if(z < y){
cout<< "3vai";
}
else if(y == z){
cout << "mojo";
}
}
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:54:25
- Judged At
- 2025-02-26 05:54:25
- Judged By
- Score
- 100
- Total Time
- 2ms
- Peak Memory
- 556.0 KiB