Wrong Answer
Code
#include <bits/stdc++.h>
using namespace std;
int main() {
int test_case;
cin >> test_case;
while (test_case--) {
int x,y;
cin >> x >>y;
int curr = 1;
while(x%curr==0 || y%curr==0){
curr++;
}
cout << curr << endl;
}
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1235 A. Valid Integer
- Contest
- Happy New Year 2026
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2026-01-06 14:47:17
- Judged At
- 2026-01-06 14:47:20
- Judged By
- Score
- 0
- Total Time
- 3ms
- Peak Memory
- 552.0 KiB