| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1220181 | uwdhoahw | 사육제 (CEOI14_carnival) | C++20 | 1 ms | 412 KiB |
#include<bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
vector<int> c(n, 0);
map<int, set<int>> m;
for (int i = 0; i < n; ++i) {
cout << 1 << ' ' << (i + 1) << '\n';
cout.flush();
int x;
cin >> x;
m[x].insert(i + 1);
}
int temp = 1;
for (const auto& it : m) {
for (int it1 : it.second) {
c[it1 - 1] = temp;
}
temp++;
}
cout << 0;
for (int i = 0; i < n; ++i) {
cout << ' ' << c[i] << '\n';
}
cout.flush();
return 0;
}
| # | 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... | ||||
