Wrong Answer
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