/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Wrong Answer 0ms 320.0 KiB
#2 Wrong Answer 0ms 320.0 KiB

Code

#include<stdio.h>
int main()
{
    int t;
    scanf("%d",&t);

    while(t--)
    {
        int a,b,count=0;
        scanf("%d %d",&a,&b);

        while(a!=0 && b!=0)
        {
            if(a>b)
            {
                a = a-b;
            }
            else
            {
                b = b-a;
            }
            count++;
        }
        printf("%d",count);
    }
}

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 14:40:16
Judged At
2024-11-11 03:41:50
Judged By
Score
0
Total Time
0ms
Peak Memory
320.0 KiB