| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 869791 | ElenaBM | ICC (CEOI16_icc) | C++17 | 0 ms | 0 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#include "icc.h"
using namespace std;
void subsets(vector<vector<bool>>&matriz, int n){
for (int i = 1; i < n; ++i){
for (int j = i+1; j <= n; ++j){
if (!matriz[i][j]){
int a[1] = {i}, b[1] = {j};
if (query(1, 1, a, b)){
setRoad(i, j);
matriz[i][j] = true;
matrz[j][i] = true;
return;
}
}
}
}
}
void run (int n){
vector<vector<bool>>matriz(n+1, vector<bool>(n+1, false));
for (int s = 0; s < n-1; ++s){
subsets (matriz, n);
}
}
