| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1324873 | kenkunkin | Island Hopping (JOI24_island) | C++20 | 0 ms | 0 KiB |
#include <bits/stdc++.h>
using namespace std;
const int maxn=3e2+5;
bool d[maxn];
void solve(int n,int l)
{
d[1]=1;
for (int i=1;i<n;i++)
{
int x=query(1,i);
if (d[x]) continue;
d[x]=1;
for (int j=1;j<n;j++)
{
int y=query(x,j);
answer(x,y);
if (d[y]) break;
d[y]=1;
}
}
}