/ SeriousOJ /

Record Detail

Time Exceeded


  
# Status Time Cost Memory Cost
#1 Time Exceeded ≥1079ms ≥424.0 KiB
#2 Time Exceeded ≥1092ms ≥408.0 KiB

Code

#include<stdio.h>
int main(){
long long int a,b,i;
int n,j;

        scanf("%d", &n);
for(j=1;j=n;j++){
              scanf("%lld %lld", &a,&b);
for(i=1;;i++){
if(a>b){
    a=abs(a-b);
    if (a==0) break;
}
else{
    b=abs(a-b);
     if (b==0) break;
}

}
printf("%lld", i);


}
return 0;
}

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:25:12
Judged At
2024-11-11 03:41:19
Judged By
Score
0
Total Time
≥1092ms
Peak Memory
≥424.0 KiB