QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#151578 | #4218. Hidden Graph | nhuang685 | WA | 24ms | 3544kb | C++20 | 2.4kb | 2023-08-27 02:56:50 | 2023-08-27 02:56:51 |
Judging History
answer
/**
* @file qoj4218-1.cpp
* @author n685
* @brief
* @date 2023-08-26
*
*
*/
#include <bits/stdc++.h>
#ifdef LOCAL
using std::cerr;
using std::cin;
using std::cout;
#else
using std::cin;
using std::cout;
#define cerr \
if (false) \
std::cerr
#endif
#ifdef LOCAL
#include "dd/debug.h"
#define dbg(...) lineInfo(__LINE__, #__VA_ARGS__), dbg1(__VA_ARGS__)
#define dbgR(...) lineInfo(__LINE__, #__VA_ARGS__), dbg2(__VA_ARGS__)
#define dbgP(p, ...) \
lineInfo(__LINE__, #__VA_ARGS__ " proj"), dbg3(p, __VA_ARGS__)
#define dbgRP(p, ...) \
lineInfo(__LINE__, #__VA_ARGS__ " proj"), dbg4(p, __VA_ARGS__)
void nline() { cerr << '\n'; }
#else
#define dbg(...) 42
#define dbgR(...) 4242
#define dbgP(...) 420
#define dbgRP(...) 420420
void nline() {}
#endif
std::pair<int, int> query(int v, const std::vector<int> &s,
const std::vector<bool> &vis) {
// cout << "? " << 1 + (int)s.size() << ' ';
int num = 1;
for (int i : s)
if (!vis[i])
num++;
cout << "? " << num << ' ';
for (int i : s)
if (!vis[i])
cout << i + 1 << ' ';
cout << v + 1 << std::endl;
int a, b;
cin >> a >> b;
if (a != -1)
a--, b--;
return {a, b};
}
int main() {
#ifdef LOCAL
#else
// cin.tie(nullptr)->sync_with_stdio(false);
std::ios::sync_with_stdio(false);
#endif
int n;
cin >> n;
std::vector<std::vector<int>> v;
v.push_back({0});
std::vector<std::pair<int, int>> ans;
for (int i = 1; i < n; ++i) {
int ind = -1;
std::vector<bool> vis(n);
for (int j = 0; j < (int)v.size(); ++j) {
std::vector<int> s = v[j];
// auto [a, b] = query(i, s);
int a, b;
std::tie(a, b) = query(i, s, vis);
if (a == -1)
ind = j;
while (a != -1) {
if (a > b)
std::swap(a, b);
assert(b == i);
ans.emplace_back(a, b);
// s.erase(a);
vis[a] = true;
std::tie(a, b) = query(i, s, vis);
}
}
if (ind == -1)
v.push_back({i});
else
v[ind].push_back(i);
}
cout << "! " << (int)ans.size() << std::endl;
for (auto [a, b] : ans)
cout << a + 1 << ' ' << b + 1 << std::endl;
}
詳細信息
Test #1:
score: 100
Accepted
time: 1ms
memory: 3544kb
input:
3 1 2 -1 -1 1 3 -1 -1 2 3 -1 -1
output:
? 2 1 2 ? 1 2 ? 2 1 3 ? 1 3 ? 2 2 3 ? 1 3 ! 3 1 2 1 3 2 3
result:
ok correct
Test #2:
score: 0
Accepted
time: 2ms
memory: 3432kb
input:
10 1 2 -1 -1 1 3 -1 -1 -1 -1 1 4 -1 -1 -1 -1 -1 -1 2 5 4 5 -1 -1 -1 -1 2 6 -1 -1 -1 -1 3 7 -1 -1 -1 -1 4 8 3 8 -1 -1 -1 -1 3 9 -1 -1 -1 -1 4 10 3 10 -1 -1
output:
? 2 1 2 ? 1 2 ? 2 1 3 ? 1 3 ? 2 2 3 ? 2 1 4 ? 1 4 ? 3 2 3 4 ? 2 1 5 ? 4 2 3 4 5 ? 3 3 4 5 ? 2 3 5 ? 3 1 5 6 ? 4 2 3 4 6 ? 3 3 4 6 ? 4 1 5 6 7 ? 4 2 3 4 7 ? 3 2 4 7 ? 5 1 5 6 7 8 ? 4 2 3 4 8 ? 3 2 3 8 ? 2 2 8 ? 6 1 5 6 7 8 9 ? 4 2 3 4 9 ? 3 2 4 9 ? 7 1 5 6 7 8 9 10 ? 4 2 3 4 10 ? 3 2 3 10 ? 2 2 10 ! ...
result:
ok correct
Test #3:
score: 0
Accepted
time: 3ms
memory: 3480kb
input:
5 2 1 -1 -1 3 1 -1 -1 3 2 -1 -1 4 1 -1 -1 4 2 -1 -1 -1 -1 5 1 -1 -1 5 2 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 5 1 2 3 4 6 ? 4 1 2 3 6 ? 2 5 6 ? 5 1 2 3 4 7 ? 4 1 2 4 7 ? 3 5 6 7 ? 2 6 7 ? 5 1 2 3 4 8 ? 4 1 2 3 8 ? 3 1 3 8 ? 3 5 6 8 ? 2 6 8 ? 2 7 8 ? 5 1 2 3 4 9 ? 4 1 2 3 9 ? 3 1 3 9 ? 3 5 6 9 ? 3 7 8 9 ? 2 7 9 ? 5 1 2 3 4 10 ? 4 1 2 4 10 ? ...
result:
ok correct
Test #10:
score: 0
Accepted
time: 1ms
memory: 3408kb
input:
6 -1 -1 2 3 -1 -1 -1 -1 -1 -1 2 5 -1 -1 -1 -1 -1 -1 5 6 -1 -1
output:
? 2 1 2 ? 3 1 2 3 ? 2 1 3 ? 3 1 2 4 ? 2 3 4 ? 3 1 2 5 ? 2 1 5 ? 3 3 4 5 ? 3 1 2 6 ? 4 3 4 5 6 ? 3 3 4 6 ! 3 2 3 2 5 5 6
result:
ok correct
Test #11:
score: 0
Accepted
time: 1ms
memory: 3428kb
input:
3 2 1 -1 -1 3 1 -1 -1 2 3 -1 -1
output:
? 2 1 2 ? 1 2 ? 2 1 3 ? 1 3 ? 2 2 3 ? 1 3 ! 3 1 2 1 3 2 3
result:
ok correct
Test #12:
score: 0
Accepted
time: 2ms
memory: 3476kb
input:
3 2 1 -1 -1 3 1 -1 -1 -1 -1
output:
? 2 1 2 ? 1 2 ? 2 1 3 ? 1 3 ? 2 2 3 ! 2 1 2 1 3
result:
ok correct
Test #13:
score: 0
Accepted
time: 0ms
memory: 3424kb
input:
5 2 1 -1 -1 3 1 -1 -1 2 3 -1 -1 -1 -1 -1 -1 -1 -1 5 1 -1 -1 2 5 -1 -1 -1 -1
output:
? 2 1 2 ? 1 2 ? 2 1 3 ? 1 3 ? 2 2 3 ? 1 3 ? 2 1 4 ? 2 2 4 ? 2 3 4 ? 2 1 5 ? 1 5 ? 2 2 5 ? 1 5 ? 3 3 4 5 ! 5 1 2 1 3 2 3 1 5 2 5
result:
ok correct
Test #14:
score: 0
Accepted
time: 1ms
memory: 3412kb
input:
3 2 1 -1 -1 -1 -1 -1 -1
output:
? 2 1 2 ? 1 2 ? 2 1 3 ? 2 2 3 ! 1 1 2
result:
ok correct
Test #15:
score: 0
Accepted
time: 1ms
memory: 3444kb
input:
5 -1 -1 -1 -1 4 3 -1 -1 2 5 3 5 -1 -1 -1 -1
output:
? 2 1 2 ? 3 1 2 3 ? 4 1 2 3 4 ? 3 1 2 4 ? 4 1 2 3 5 ? 3 1 3 5 ? 2 1 5 ? 2 4 5 ! 3 3 4 2 5 3 5
result:
ok correct
Test #16:
score: 0
Accepted
time: 10ms
memory: 3492kb
input:
93 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 10 9 -1 -1 7 11 -1 -1 -1 -1 2 12 -1 -1 -1 -1 5 13 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 15 12 -1 -1 6 16 8 16 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 19 18 11 19 -1 -1 -1 -1 20 16 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 1 23 8 23 -1 -1 -1 -1 -1 -1 -1 -1 1 25 -1 -1 ...
output:
? 2 1 2 ? 3 1 2 3 ? 4 1 2 3 4 ? 5 1 2 3 4 5 ? 6 1 2 3 4 5 6 ? 7 1 2 3 4 5 6 7 ? 8 1 2 3 4 5 6 7 8 ? 9 1 2 3 4 5 6 7 8 9 ? 10 1 2 3 4 5 6 7 8 9 10 ? 9 1 2 3 4 5 6 7 8 10 ? 10 1 2 3 4 5 6 7 8 9 11 ? 9 1 2 3 4 5 6 8 9 11 ? 2 10 11 ? 10 1 2 3 4 5 6 7 8 9 12 ? 9 1 3 4 5 6 7 8 9 12 ? 3 10 11 12 ? 10 1 2 3...
result:
ok correct
Test #17:
score: 0
Accepted
time: 6ms
memory: 3440kb
input:
111 -1 -1 -1 -1 -1 -1 -1 -1 2 6 -1 -1 7 4 -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