# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
509867 | vector | Chameleon's Love (JOI20_chameleon) | C++17 | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "chameleon.h"
#include<bits/stdc++.h>
using namespace std;
int Query(const std::vector<int> &p);
void Answer(int a, int b);
void Solve(int N)
{
for(int i=1;i<=2*N;i++)for(int j=i+1;j<=2*N;j++)if(i!=j){
vector<int>p;
p.push_back(i);
p.push_back(j);
if(Query(p)==1)answer(i,j);
}
}