/ SeriousOJ /

Record Detail

Runtime Error


  
# Status Time Cost Memory Cost
#1 Runtime Error 0ms 284.0 KiB
#2 Runtime Error 2ms 284.0 KiB

Code

#include<stdio.h>
int main()
{
    int t;
    scanf("%d",&t);
    while(t--)
    {
        int x,y,n=-1;
        scanf("%d%d",&x,&y);
        for(int i=1;i<=100;i++)
        {
            if((i%x!=0)&&(i%y!=0))
            {
                n=i;
            }
        }
        printf("%d",n);
    }
}

Information

Submit By
Type
Submission
Problem
P1235 A. Valid Integer
Contest
Happy New Year 2026
Language
C99 (GCC 13.2.0)
Submit At
2026-01-06 14:56:39
Judged At
2026-01-06 14:56:40
Judged By
Score
0
Total Time
2ms
Peak Memory
284.0 KiB