제출 #1249208

#제출 시각아이디문제언어결과실행 시간메모리
1249208LIA카멜레온의 사랑 (JOI20_chameleon)C++17
0 / 100
16 ms432 KiB
#include "chameleon.h" //#include "grader.cpp" #include <bits/stdc++.h> using namespace std; #define ll int #define vll vector<ll> namespace { int variable_example = 1; } // namespace void Solve(int n) { vll p(2); vll found(2 * n); for (ll i = 0; i < 2 * n; ++i) { for (ll j = i + 1; j < 2 * n; ++j) { if (found[i]) continue; p[0] = i + 1, p[1] = j + 1; if (Query(p) == 1) { found[i] = found[j] = 1; Answer(i + 1, j + 1); } } } }
#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...