| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 | 
|---|---|---|---|---|---|---|---|
| 784158 | jnjwnwnw | 사육제 (CEOI14_carnival) | C++11 | 22 ms | 316 KiB | 
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <iostream>
#include <algorithm>
#include <string>
#include <set>
using namespace std;
void setIO(string s) {
	freopen((s + ".in").c_str(), "r", stdin);
	freopen((s + ".out").c_str(), "w", stdout);
}
#define MAXN 151
int n;
set<int> groups[MAXN];
int ans[MAXN];
int main(){
    cin >> n;
	int group = 0;
	int prev = 0;
	for(int i = 1; i <= n; i++){
		cout << i;
		for(int j = 1; j <= i; j++){
			cout << " " << j; 
		}
		cout << endl;
		int cur;
		cin >> cur;
		if (cur != prev){
			groups[group++].insert(i);
		}
		prev = cur;
	}
	int numGroups = group;
	group = 0;
	int temp;
	for(int i = 1; i <= n; i++){
		if (groups[group].find(i) != groups[group].end()){
			// already has, so next group
			group++;
		}else{
			// need to find a group to keep this in;
			for(int j = 0; j < group; j++){
				cout << 2 <<  " " << (*groups[j].upper_bound(0)) << " " << i << endl;
				cin >> temp;
				if (temp == 1){
					// found our spot
					groups[j].insert(i);
					break;
				}
			}
		}
	}
	for(int i = 0; i < numGroups; i++){
		for(int j: groups[i]){
			ans[j] = i+1;
		}
	}
	cout << 0;
	for(int i = 1; i <= n; i++){
		cout << " " << ans[i];
	}
	cout << endl;
	
}
컴파일 시 표준 에러 (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... | ||||
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
