/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 0ms 284.0 KiB
#2 Accepted 0ms 284.0 KiB
#3 Accepted 0ms 284.0 KiB
#4 Accepted 0ms 344.0 KiB
#5 Accepted 0ms 284.0 KiB
#6 Wrong Answer 0ms 324.0 KiB
#7 Accepted 0ms 388.0 KiB
#8 Accepted 0ms 284.0 KiB
#9 Accepted 0ms 324.0 KiB
#10 Accepted 0ms 324.0 KiB
#11 Accepted 0ms 284.0 KiB
#12 Accepted 0ms 284.0 KiB
#13 Wrong Answer 0ms 284.0 KiB

Code

#include <stdio.h>

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

    if(a>= -1000 && b>= -1000 && x>= -1000 && a<=1000 && b<=1000 && x<=1000){
        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(t1 == t2){
            printf("mojo\n");
        }
        else if(t1<t2){
            printf("7vai\n");
        }
        else if(t2<t1){
            printf("3vai\n");
        }

    }

    else{
        return 0;
    }

    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 07:15:43
Judged At
2025-02-26 07:15:43
Judged By
Score
55
Total Time
0ms
Peak Memory
388.0 KiB