Wrong Answer
Code
#include<stdio.h>
int main(){
long int a,b,i;
int j,n;
scanf("%d", &n);
for(j=1;j<=n;j++){
scanf("%ld %ld", &a,&b);
for(i=1;i=j;i++){
if(a>b){
a=abs(a-b);
}
else{
b=abs(a-b);
}
if (a==0||b==0) break;
}
printf("%ld", i);
}
}
Information
- Submit By
- Type
- Submission
- Problem
- P1029 Make it zero
- Contest
- Brain booster #2
- Language
- C99 (GCC 13.2.0)
- Submit At
- 2024-03-06 16:37:19
- Judged At
- 2024-11-11 03:41:16
- Judged By
- Score
- 0
- Total Time
- 1ms
- Peak Memory
- 328.0 KiB