Submission #17683

# Submission time Handle Problem Language Result Execution time Memory
17683 2016-01-12T07:12:22 Z chrome Weighting stones (IZhO11_stones) C++
8 / 100
34 ms 1720 KB
#include <bits/stdc++.h>

using namespace std;

#define ll long long
#define foreach(it, S) for (__typeof (S.begin()) it = S.begin(); it != S.end(); it++)
#define all(x) x.begin(), x.end()
#define endl '\n'
#define _ ios_base :: sync_with_stdio(false); cin.tie(NULL);

#ifdef inputf
	#define fname ""
#else
	#define fname "" // <- Here
#endif

const double eps = 1e-9;
const int MaxN = int(2e5) + 256;
const int MOD = int(1e9) + 7;

template <typename T> inline T gcd(T a, T b) {
	return b ? gcd (b, a % b) : a;
}

inline bool Palindrome(const string& s) {
	return equal(s.begin(), s.end(), s.rbegin());
}

ll a[5];

int main() { // _
	#ifdef lcl
		freopen(fname".in", "r", stdin);
		freopen(fname".out", "w", stdout);
	#endif

	int n; scanf("%d", &n);

	for (int i = 0; i < n; ++i) {
		int val, c; scanf("%d%d", &val, &c);
		a[c] += val;
		if (a[1] > a[2])
			printf(">");
		else
			if (a[1] < a[2])
				printf("<");
			else
				printf("?");
		puts("");
	}

	return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 1720 KB Output isn't correct - 5th words differ - expected: '?', found: '<'
2 Incorrect 0 ms 1720 KB Output isn't correct - 6th words differ - expected: '?', found: '>'
3 Incorrect 0 ms 1720 KB Output isn't correct - 3rd words differ - expected: '?', found: '<'
4 Incorrect 0 ms 1720 KB Output isn't correct - 3rd words differ - expected: '?', found: '<'
5 Incorrect 0 ms 1720 KB Output isn't correct - 3rd words differ - expected: '?', found: '>'
6 Incorrect 0 ms 1720 KB Output isn't correct - 3rd words differ - expected: '?', found: '<'
7 Incorrect 0 ms 1720 KB Output isn't correct - 17th words differ - expected: '?', found: '<'
8 Incorrect 0 ms 1720 KB Output isn't correct - 3rd words differ - expected: '?', found: '<'
9 Incorrect 0 ms 1720 KB Output isn't correct - 4th words differ - expected: '?', found: '>'
10 Incorrect 0 ms 1720 KB Output isn't correct - 8th words differ - expected: '?', found: '<'
11 Incorrect 15 ms 1720 KB Output isn't correct - 4th words differ - expected: '?', found: '<'
12 Incorrect 29 ms 1720 KB Output isn't correct - 4th words differ - expected: '?', found: '>'
13 Correct 25 ms 1720 KB Output is correct - 100000 tokens
14 Correct 16 ms 1720 KB Output is correct - 100000 tokens
15 Incorrect 0 ms 1720 KB Output isn't correct - 21st words differ - expected: '?', found: '>'
16 Incorrect 31 ms 1720 KB Output isn't correct - 9th words differ - expected: '?', found: '>'
17 Incorrect 21 ms 1720 KB Output isn't correct - 3rd words differ - expected: '?', found: '<'
18 Incorrect 0 ms 1720 KB Output isn't correct - 4th words differ - expected: '?', found: '<'
19 Incorrect 30 ms 1720 KB Output isn't correct - 17th words differ - expected: '?', found: '>'
20 Incorrect 24 ms 1720 KB Output isn't correct - 8th words differ - expected: '?', found: '<'
21 Incorrect 34 ms 1720 KB Output isn't correct - 11th words differ - expected: '?', found: '<'
22 Incorrect 16 ms 1720 KB Output isn't correct - 11th words differ - expected: '?', found: '<'
23 Incorrect 27 ms 1720 KB Output isn't correct - 7th words differ - expected: '?', found: '<'
24 Incorrect 16 ms 1720 KB Output isn't correct - 3rd words differ - expected: '?', found: '<'
25 Incorrect 25 ms 1720 KB Output isn't correct - 6th words differ - expected: '?', found: '>'