Wrong Answer
Code
#include <bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin >> t;
while (t--)
{
int x,y;
cin>>x>>y;
for(int i=1;i<=100;i++){
if(i%x!=0 && i%y!=0){
cout<<i<<endl;
}else cout<<"-1"<<endl;
}
}
}
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:50:23
- Judged At
- 2026-01-06 14:50:24
- Judged By
- Score
- 0
- Total Time
- 171ms
- Peak Memory
- 644.0 KiB