제출 #4999

#제출 시각아이디문제언어결과실행 시간메모리
4999tkxkd7223돌 무게 재기 (IZhO11_stones)C++98
8 / 100
35 ms1084 KiB
#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; }
#Verdict Execution timeMemoryGrader output
Fetching results...