답안 #4999

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
4999 2014-01-24T16:06:07 Z tkxkd7223 돌 무게 재기 (IZhO11_stones) C++
8 / 100
35 ms 1084 KB
#include <stdio.h>
int main(){
    int n, y, i;
    long long a, b, x;
    a=b=0;
    scanf("%d", &n);
    for(i=1 ; i<=n ; i++){
        scanf("%lld %d", &x, &y);
        if(y==1)a+=x;
        else b+=x;
        if(a>b)printf(">\n");
        else if(a<b)printf("<\n");
        else printf("?\n");
    }
    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 1084 KB Output isn't correct - 5th words differ - expected: '?', found: '<'
2 Incorrect 0 ms 1084 KB Output isn't correct - 6th words differ - expected: '?', found: '>'
3 Incorrect 0 ms 1084 KB Output isn't correct - 3rd words differ - expected: '?', found: '<'
4 Incorrect 0 ms 1084 KB Output isn't correct - 3rd words differ - expected: '?', found: '<'
5 Incorrect 0 ms 1084 KB Output isn't correct - 3rd words differ - expected: '?', found: '>'
6 Incorrect 0 ms 1084 KB Output isn't correct - 3rd words differ - expected: '?', found: '<'
7 Incorrect 0 ms 1084 KB Output isn't correct - 17th words differ - expected: '?', found: '<'
8 Incorrect 0 ms 1084 KB Output isn't correct - 3rd words differ - expected: '?', found: '<'
9 Incorrect 0 ms 1084 KB Output isn't correct - 4th words differ - expected: '?', found: '>'
10 Incorrect 0 ms 1084 KB Output isn't correct - 8th words differ - expected: '?', found: '<'
11 Incorrect 0 ms 1084 KB Output isn't correct - 4th words differ - expected: '?', found: '<'
12 Incorrect 27 ms 1084 KB Output isn't correct - 4th words differ - expected: '?', found: '>'
13 Correct 28 ms 1084 KB Output is correct - 100000 tokens
14 Correct 24 ms 1084 KB Output is correct - 100000 tokens
15 Incorrect 26 ms 1084 KB Output isn't correct - 21st words differ - expected: '?', found: '>'
16 Incorrect 35 ms 1084 KB Output isn't correct - 9th words differ - expected: '?', found: '>'
17 Incorrect 0 ms 1084 KB Output isn't correct - 3rd words differ - expected: '?', found: '<'
18 Incorrect 34 ms 1084 KB Output isn't correct - 4th words differ - expected: '?', found: '<'
19 Incorrect 0 ms 1084 KB Output isn't correct - 17th words differ - expected: '?', found: '>'
20 Incorrect 0 ms 1084 KB Output isn't correct - 8th words differ - expected: '?', found: '<'
21 Incorrect 28 ms 1084 KB Output isn't correct - 11th words differ - expected: '?', found: '<'
22 Incorrect 26 ms 1084 KB Output isn't correct - 11th words differ - expected: '?', found: '<'
23 Incorrect 18 ms 1084 KB Output isn't correct - 7th words differ - expected: '?', found: '<'
24 Incorrect 24 ms 1084 KB Output isn't correct - 3rd words differ - expected: '?', found: '<'
25 Incorrect 28 ms 1084 KB Output isn't correct - 6th words differ - expected: '?', found: '>'