# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
4999 | tkxkd7223 | Weighting stones (IZhO11_stones) | C++98 | 35 ms | 1084 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |