Submission #319476

#TimeUsernameProblemLanguageResultExecution timeMemory
319476shaf_wa_nurICC (CEOI16_icc)C++17
0 / 100
460 ms808 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] = {x}; int b[1] = {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...