/ SeriousOJ /

Record Detail

Runtime Error


  
# Status Time Cost Memory Cost
#1 Runtime Error 1ms 532.0 KiB
#2 Runtime Error 1ms 532.0 KiB

Code

#include <bits/stdc++.h>
using namespace std;

#ifdef LOCAL
#include "debug.h"
#else
#define dbg(...)
#endif

int32_t main() {
  cin.tie(0)->sync_with_stdio(0);
  
  int Q; cin >> Q;
  while (Q--)[&] {
    int x, y;
    cin >> x >> y;

    cout << (x == 1 || y == 1 ? -1 : 107) << "\n";
  }();
}

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:34:51
Judged At
2026-01-06 14:34:51
Judged By
Score
0
Total Time
1ms
Peak Memory
532.0 KiB