/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 532.0 KiB
#2 Accepted 1ms 532.0 KiB
#3 Accepted 1ms 532.0 KiB
#4 Accepted 1ms 532.0 KiB
#5 Accepted 1ms 532.0 KiB
#6 Accepted 1ms 532.0 KiB
#7 Accepted 1ms 532.0 KiB
#8 Accepted 1ms 448.0 KiB
#9 Accepted 1ms 532.0 KiB
#10 Accepted 1ms 532.0 KiB
#11 Wrong Answer 1ms 484.0 KiB
#12 Accepted 1ms 320.0 KiB
#13 Accepted 1ms 764.0 KiB
#14 Accepted 1ms 532.0 KiB
#15 Accepted 2ms 532.0 KiB

Code

#include <bits/stdc++.h>
using namespace std;
int main(){
    int x, a, b;
    cin >> x >> a >> b;
    int d1 = abs(x-a);
    int d2 = abs(x-b);

    if(a == b){
        cout << "mojo" << endl;
    }
    else if(d1 < d2){
        cout << "7vai" << endl;
    }
    else if(d1 > d2){
        cout << "3vai" << endl;
    }
    return 0;
}

Information

Submit By
Type
Submission
Problem
P1179 7vai , 3vai or mojo ?
Language
C++11 (G++ 13.2.0)
Submit At
2025-08-31 15:43:12
Judged At
2025-08-31 15:43:12
Judged By
Score
95
Total Time
2ms
Peak Memory
764.0 KiB