Submission #319505

#TimeUsernameProblemLanguageResultExecution timeMemory
319505shaf_wa_nurICC (CEOI16_icc)C++17
0 / 100
473 ms688 KiB
#include <bits/stdc++.h> #ifndef LOCAL #include "icc.h" #endif using namespace std; void setRoad(int a, int b); int query(int size_a, int size_b, int a[], int b[]); void run(int n) { set<pair<int, int>> st; while (true) { for (int x = 1; x <= n; x++) { for (int y = x + 1; y <= n; y++) { int a[1], b[1]; a[0] = x; b[0] = y; int ret = query(1, 1, a, b); if (ret and !st.count({x, y}) and !st.count({y, x})) { st.emplace(y, x); st.emplace(x, y); setRoad(x, y); } } } } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...