Wrong Answer
Code
#include<cstdio>
#include<iostream>
#include<algorithm>
#include<cmath>
using namespace std;
int main()
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
int s=a-b;
int s2=a-c;
if(s<0)
{
s=s*-1;
}
if(s2<0)
{
s2=s2*-1;
}
if(s<s2)
{
printf("7vai\n");
}
else if(b==c)
{
printf("mojo\n");
}
else
{
printf("3vai\n");
}
}
Information
- Submit By
- Type
- Submission
- Problem
- P1179 7vai , 3vai or mojo ?
- Contest
- Intra LU IEEE Beginner Programming Contest
- Language
- C++11 (G++ 13.2.0)
- Submit At
- 2025-02-26 05:46:31
- Judged At
- 2025-02-26 05:46:31
- Judged By
- Score
- 95
- Total Time
- 1ms
- Peak Memory
- 540.0 KiB