Wrong Answer
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