답안 #17757

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
17757 2016-01-12T10:03:38 Z Elibay 돌 무게 재기 (IZhO11_stones) C++
0 / 100
537 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, kol1, kol2;
 
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 * 1.0 + 0.999, Sx += x * 1.0, kol2 ++;
        else
            My += x * 1.0 + 0.999, Sy += x * 1.0, kol1 ++;
        if (Sx > My + i - 1 && kol2 >= kol1)
            puts ("<");
        else if (Sy > Mx + i - 1 && kol1 >= kol2)
            puts (">");
        else
            puts ("?");
    }
    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 1720 KB Output isn't correct - 17th 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 - 8th 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 - 14th words differ - expected: '?', found: '>'
6 Incorrect 0 ms 1720 KB Output isn't correct - 36th 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 20 ms 1720 KB Output isn't correct - 8th words differ - expected: '?', found: '<'
11 Incorrect 224 ms 1720 KB Output isn't correct - 4th words differ - expected: '?', found: '<'
12 Incorrect 399 ms 1720 KB Output isn't correct - 4th words differ - expected: '?', found: '>'
13 Incorrect 445 ms 1720 KB Output isn't correct - 2nd words differ - expected: '>', found: '?'
14 Incorrect 416 ms 1720 KB Output isn't correct - 2nd words differ - expected: '<', found: '?'
15 Incorrect 537 ms 1720 KB Output isn't correct - 20th words differ - expected: '<', found: '?'
16 Incorrect 414 ms 1720 KB Output isn't correct - 20th words differ - expected: '>', found: '?'
17 Incorrect 448 ms 1720 KB Output isn't correct - 2nd words differ - expected: '>', found: '?'
18 Incorrect 448 ms 1720 KB Output isn't correct - 4th words differ - expected: '?', found: '<'
19 Incorrect 423 ms 1720 KB Output isn't correct - 10th words differ - expected: '<', found: '?'
20 Incorrect 460 ms 1720 KB Output isn't correct - 4th words differ - expected: '<', found: '?'
21 Incorrect 514 ms 1720 KB Output isn't correct - 8th words differ - expected: '>', found: '?'
22 Incorrect 516 ms 1720 KB Output isn't correct - 11th words differ - expected: '?', found: '<'
23 Incorrect 513 ms 1720 KB Output isn't correct - 6th words differ - expected: '>', found: '?'
24 Incorrect 350 ms 1720 KB Output isn't correct - 3rd words differ - expected: '?', found: '<'
25 Incorrect 410 ms 1720 KB Output isn't correct - 4th words differ - expected: '>', found: '?'