| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1290657 | ey00 | Xylophone (JOI18_xylophone) | C++20 | 0 ms | 0 KiB |
#include <bits/stdc++.h>
using namespace std;
void solve(int N) {
vector<bool> used(N+1,false);
for(int i=1;i<=N;i++){
for(int val=1; val<=N; val++){
if(used[val]) continue;
int diff = query(i,i);
used[val] = true;
answer(i,val);
break;
}
}
}
