Submission #17739

# Submission time Handle Problem Language Result Execution time Memory
17739 2016-01-12T09:47:29 Z Elibay Weighting stones (IZhO11_stones) C++
8 / 100
470 ms 1720 KB
#include <bits/stdc++.h>
#define Fname ""
 
using namespace std;
 
const int MaxN = 3e5 + 17, INF = 1e9 + 17, Mod = 1e9 + 7;
 
double x, y, Sx, Sy, Mx, My;
int n;
 
int main ()
{
    #ifdef Elibay
        freopen (".in", "r", stdin);
    #endif
    cin >> n;
    for (int i = 1; i <= n; ++ i)
    {
        cin >> x >> y;
        if (y == 2)
            Mx += x + 0.99, Sx += x;
        else
            My += x + 0.99, Sy += x;
        if (Mx > My && Sx > Sy && Sx > My)
            puts ("<");
        else if (My > Mx && Sy > Sx && Sy > Mx)
            puts (">");
        else
            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 12 ms 1720 KB Output isn't correct - 17th words differ - expected: '?', found: '<'
8 Incorrect 6 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 41 ms 1720 KB Output isn't correct - 8th words differ - expected: '?', found: '<'
11 Incorrect 233 ms 1720 KB Output isn't correct - 4th words differ - expected: '?', found: '<'
12 Incorrect 383 ms 1720 KB Output isn't correct - 4th words differ - expected: '?', found: '>'
13 Correct 367 ms 1720 KB Output is correct - 100000 tokens
14 Correct 385 ms 1720 KB Output is correct - 100000 tokens
15 Incorrect 470 ms 1720 KB Output isn't correct - 26th words differ - expected: '?', found: '<'
16 Incorrect 388 ms 1720 KB Output isn't correct - 9th words differ - expected: '?', found: '>'
17 Incorrect 381 ms 1720 KB Output isn't correct - 3rd words differ - expected: '?', found: '<'
18 Incorrect 366 ms 1720 KB Output isn't correct - 4th words differ - expected: '?', found: '<'
19 Incorrect 335 ms 1720 KB Output isn't correct - 17th words differ - expected: '?', found: '>'
20 Incorrect 407 ms 1720 KB Output isn't correct - 13th words differ - expected: '?', found: '>'
21 Incorrect 378 ms 1720 KB Output isn't correct - 11th words differ - expected: '?', found: '<'
22 Incorrect 349 ms 1720 KB Output isn't correct - 11th words differ - expected: '?', found: '<'
23 Incorrect 383 ms 1720 KB Output isn't correct - 7th words differ - expected: '?', found: '<'
24 Incorrect 320 ms 1720 KB Output isn't correct - 3rd words differ - expected: '?', found: '<'
25 Incorrect 349 ms 1720 KB Output isn't correct - 9th words differ - expected: '?', found: '<'