Submission #167818

# Submission time Handle Problem Language Result Execution time Memory
167818 2019-12-10T09:30:25 Z itgl Weighting stones (IZhO11_stones) C++14
0 / 100
2 ms 376 KB
#include<bits/stdc++.h>

using namespace std;

int main(){
  int n;
  cin >> n;
  int case1=0,case2=0;
  for(int i=1;i<=n;i++){
    int w,c;
    cin >> w >> c;
    if(c==1)case1+=w;
    else case2+=w;
    if(case1<case2) cout << '<' << '\n';
    else if(case1>case2) cout << '>' << '\n';
    else cout << '?' << '\n';

  }

  return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 376 KB Output isn't correct
2 Halted 0 ms 0 KB -