Accepted
Code
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, a, b;
cin >> x >> a >> b;
int satvai = abs(x - a);
int tinvai = abs(x - b);
if (satvai < tinvai) {
cout << "7vai" << endl;
} else if (tinvai < satvai) {
cout << "3vai" << 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:38:16
- Judged At
- 2025-02-26 05:38:16
- Judged By
- Score
- 100
- Total Time
- 1ms
- Peak Memory
- 548.0 KiB