/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 532.0 KiB
#2 Wrong Answer 11ms 532.0 KiB

Code

#include <iostream>
using namespace std;

int main(){
  int t;
  cin>>t;
  while(t--){
    int x,y;
    cin>>x>>y;
   if(x==1||y==1){
    cout<<"-1"<<endl;
   }
    else if(x==17)
        cout<<"19"<<endl;
    else cout<<"17"<<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 15:27:27
Judged At
2026-01-06 15:27:29
Judged By
Score
1
Total Time
11ms
Peak Memory
532.0 KiB