| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 101260 | dwsc | ICC (CEOI16_icc) | C++14 | 3 ms | 384 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "icc.h"
#include <bits/stdc++.h>
using namespace std;
void run(int n) {
set<int> s;
for (int i = 1; i <= n; i++) s.insert(i);
int a[1],b[1];
vector<int> fixed;
for (int i =1; i <= n; i++){
for (int j = 1; j <= n; j++){
a[0] = i,b[0] = j;
if (query(1,1,a,b)){
s.erase(i);
s.erase(j);
fixed.push_back(i);
fixed.push_back(j);
setRoad(i,j);
break;
}
}
}
for (int i = 1; i < n-1; i++){
int a1[fixed.size()],b1[1];
for (int j = 0; j < fixed.size(); j++) a1[j] = fixed[j];
for (auto it = s.begin(); it != s.end(); ++it){
int val = *it;
b1[0] = val;
if (query(fixed.size(),1,a1,b1)){
int a2[1],b2[1];
b2[0] = val;
for (int j = 0; j < fixed.size(); j++){
a2[0] = fixed[j];
if (query(1,1,a2,b2)){
setRoad(a2[0],b2[0]);
break;
}
}
fixed.push_back(val);
s.erase(val);
break;
}
}
}
}컴파일 시 표준 에러 (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... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
