/ SeriousOJ /

Record Detail

Wrong Answer


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

Code

#include <stdio.h>

int main() {
    unsigned long long int a, b;
    int n;
    scanf("%d",&n);
    for (int i = 0; i < n; i++) {
        scanf("%lld %lld", &a, &b);
        unsigned long long int count = 0;
        while (b != 0) {
            unsigned long long int x = b;
            b = a % b;
            a = x;
            count++;
        }
        printf("%lld\n", count);
    }
    return 0;
}

Information

Submit By
Type
Submission
Problem
P1029 Make it zero
Contest
Brain booster #2
Language
C11 (GCC 13.2.0)
Submit At
2024-03-06 16:11:02
Judged At
2024-11-11 03:41:25
Judged By
Score
0
Total Time
0ms
Peak Memory
328.0 KiB