/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Wrong Answer 1ms 552.0 KiB
#2 Wrong Answer 3ms 532.0 KiB

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