| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 89916 | Scayre | 돌 무게 재기 (IZhO11_stones) | C++11 | 2 ms | 256 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
/// In the name of GOD
/// I love my MOTHER
/// Only GOLD
//#include <bits/stdc++.h>
#include <map>
#include <set>
#include <list>
#include <cmath>
#include <ctime>
#include <deque>
#include <queue>
#include <stack>
#include <string>
#include <bitset>
#include <cstdio>
#include <limits>
#include <vector>
#include <climits>
#include <cstring>
#include <cstdlib>
#include <fstream>
#include <numeric>
#include <sstream>
#include <cassert>
#include <iomanip>
#include <iostream>
#include <algorithm>
#include <unordered_set>
#define sz(s) (ll)(s.size())
#define all(x) (x.begin(), x.end())
#define pb push_back
#define pf push_front
#define F first
#define S second
#define ort1 exit(0);
#define nl endl
#define db double
#define ioi exit(0);
#define TL clock() / (double)CLOCKS_PER_SEC
#define NFS ios_base :: sync_with_stdio(0), cin.tie(0), cout.tie(0);
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
const double pi = acos(-1.0);
const double eps = 1e-9;
const int mod = 1e9 + 7;
const ll INF = 1e12 + 1;
const int N = 2e5 + 9;
int n;
ll l,r;
int main(){
freopen("stones.in","r",stdin);
freopen("stones.out","w",stdout);
cin >> n;
for(int i=1;i<=n;i++){
int x,y;
cin >> x >> y;
if(y==1){
l+=x;
}
else r+=x;
if(l>r){
if(i==n){
cout << '>';
break;
}
cout << '>' << endl;
}
if(l<r){
if(i==n){
cout << '<';
break;
}
cout << '<' << endl;
}
if(l==r){
if(i==n){
cout << '?';
break;
}
cout << '?' << endl;
}
}
ioi
}
컴파일 시 표준 에러 (stderr) 메시지
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
