| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 | 
|---|---|---|---|---|---|---|---|
| 36243 | touristk2000 | Money (IZhO17_money) | C++14 | 1500 ms | 53220 KiB | 
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define inf 1111111
using namespace std;
int n,tom;
int a[inf];
set<int> kom;
int main(){
    //freopen("money.in","r",stdin);
	//freopen("money.out","w",stdout);
    scanf("%d",&n); 
    for(int i =0; i < n; i ++) scanf("%d",a + i);
    kom.insert(inf);
    int i = 0; 
    while(i < n){
        kom.insert(a[i]);
        int up = *kom.upper_bound(a[i]);
        int j = i + 1;
        while(a[j - 1] <= a[j] && a[j] <= up){
            kom.insert(a[j ++]);
        }
        tom ++;
        i = j;
    }
    cout << tom;
    return 0;
}
컴파일 시 표준 에러 (stderr) 메시지
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
