# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1087906 | LilPluton | 돌 무게 재기 (IZhO11_stones) | C++14 | 1 ms | 348 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
#define int ll
#define ll long long
int dx[] = {1, -1, 0, 0};
int dy[] = {0, 0, 1, -1};
const int sz = 1e5 + 5;
signed main(){
int n;
cin >> n;
int mx1 = 0, mx2 = 0;
for(int i = 0; i < n; ++i){
int k, x;
cin >> k >> x;
if(x == 1){
mx1 += k;
}else{
mx2 += k;
}
if(mx1 > mx2){
cout << ">" << endl;
}
if(mx1 < mx2){
cout << "<" << endl;
}
if(mx1 == mx2){
cout << '?' << endl;
}
}
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |