Submission #17715

# Submission time Handle Problem Language Result Execution time Memory
17715 2016-01-12T09:09:30 Z chrome Weighting stones (IZhO11_stones) C++
8 / 100
32 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];
ll m[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] += 1ll * val * 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 0 ms 1720 KB Output isn't correct - 4th words differ - expected: '?', found: '<'
12 Incorrect 22 ms 1720 KB Output isn't correct - 4th words differ - expected: '?', found: '<'
13 Correct 23 ms 1720 KB Output is correct - 100000 tokens
14 Correct 31 ms 1720 KB Output is correct - 100000 tokens
15 Incorrect 16 ms 1720 KB Output isn't correct - 21st words differ - expected: '?', found: '>'
16 Incorrect 16 ms 1720 KB Output isn't correct - 9th words differ - expected: '?', found: '>'
17 Incorrect 25 ms 1720 KB Output isn't correct - 3rd words differ - expected: '?', found: '<'
18 Incorrect 26 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 0 ms 1720 KB Output isn't correct - 8th words differ - expected: '?', found: '<'
21 Incorrect 21 ms 1720 KB Output isn't correct - 11th words differ - expected: '?', found: '<'
22 Incorrect 32 ms 1720 KB Output isn't correct - 11th words differ - expected: '?', found: '<'
23 Incorrect 28 ms 1720 KB Output isn't correct - 7th words differ - expected: '?', found: '<'
24 Incorrect 24 ms 1720 KB Output isn't correct - 3rd words differ - expected: '?', found: '<'
25 Incorrect 30 ms 1720 KB Output isn't correct - 6th words differ - expected: '?', found: '>'