Submission #163296

# Submission time Handle Problem Language Result Execution time Memory
163296 2019-11-12T13:30:58 Z tselmegkh Weighting stones (IZhO11_stones) C++14
0 / 100
3 ms 504 KB
#include<bits/stdc++.h>
using namespace std;

int main(){
	int n;
	cin >> n;
	long long sum[3] = {0, 0, 0};
	for(int i = 0; i < n; i++){
		int r, s;
		cin >> r >> s;
		sum[s] += r;
		if(sum[1] > sum[2]){
			cout << ">\n";
		}else if(sum[1] < sum[2]){
			cout << "<\n";
		}else{
			cout << "?\n";
		}
	}
}
# Verdict Execution time Memory Grader output
1 Incorrect 3 ms 504 KB Output isn't correct
2 Halted 0 ms 0 KB -