/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 0ms 516.0 KiB
#2 Accepted 0ms 284.0 KiB
#3 Accepted 0ms 540.0 KiB
#4 Accepted 0ms 588.0 KiB
#5 Accepted 0ms 324.0 KiB
#6 Wrong Answer 0ms 284.0 KiB
#7 Accepted 0ms 512.0 KiB
#8 Accepted 0ms 632.0 KiB
#9 Accepted 0ms 540.0 KiB
#10 Accepted 0ms 540.0 KiB
#11 Wrong Answer 0ms 540.0 KiB

Code

#include <stdio.h>

int main()
{
    int a, b, x, t1, t2;
    scanf("%d %d %d", &x, &a, &b);

    if(x<0){
        x = -1*x;
    }

    t1 = x-a;
    t2 = x-b;

    if(t1<0){
        t1 = -1*t1;
    }
    if(t2<0){
        t2 = -1*t2;
    }
    if(a == b){
        printf("mojo\n");
    }
    else if(t1<t2){
        printf("7vai\n");
    }
    else if(t2<t1){
        printf("3vai\n");
    }


    return 0;

}

Information

Submit By
Type
Submission
Problem
P1179 7vai , 3vai or mojo ?
Contest
Intra LU IEEE Beginner Programming Contest
Language
C99 (GCC 13.2.0)
Submit At
2025-02-26 06:12:30
Judged At
2025-02-26 06:12:30
Judged By
Score
45
Total Time
0ms
Peak Memory
632.0 KiB