Submission #4999

#TimeUsernameProblemLanguageResultExecution timeMemory
4999tkxkd7223Weighting stones (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...