Wrong Answer
Code
#include<stdio.h>
int main()
{
int T,A,B,C;
int k=2;
scanf("%d",&T);
for(int i=1;i<=T;i++)
{
scanf("%d%d%d",&A,&B,&C);
int cal1=A-k;
int cal2=B-k;
int cal3=C-k;
int calculation=cal1-cal2-cal3;
if(calculation==0)
{
printf("%d",calculation);
}
else
{
printf("%d",1);
}
}
}
Information
- Submit By
- Type
- Submission
- Problem
- P1061 Bring equality
- Contest
- Brain Booster #4
- Language
- C99 (GCC 13.2.0)
- Submit At
- 2024-07-14 16:02:51
- Judged At
- 2024-11-11 03:24:56
- Judged By
- Score
- 0
- Total Time
- 4ms
- Peak Memory
- 320.0 KiB