Code
#include<stdio.h>
int main()
{
int t;
scanf("%d",&t);
while(t--)
{
int x,y;
scanf("%d%d",&x,&y);
if(x==1||y==1)
{
printf("-1\n");
}
else if(x!=17&&y!=17)
{
printf("17\n");
}
else
{
printf("13\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 15:09:42
- Judged At
- 2026-01-06 15:09:42
- Judged By
- Score
- 100
- Total Time
- 1ms
- Peak Memory
- 352.0 KiB