| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1304229 | exoworldgd | Island Hopping (JOI24_island) | C++20 | 0 ms | 0 KiB |
#pragma GCC optimize("O5,unroll-loops,inline,fast-math")
#pragma GCC target("avx2,bmi,bmi2,popcnt,lzcnt")
#include <bits/stdc++.h>
#define exoworldgd cin.tie(0)->sync_with_stdio(0), cout.tie(0)
#define ll long long
#include "island.h"
using namespace std;
void solve(int N, int L) {
int vis[305]={}; vis[1]=1;
for (int i=1,x; i<n; i++) {
x=query(1,i);
if (vis[x]) continue;
for (int j=1,y; j<n; j++) {
y=query(x,j), answer(x,y);
if (vis[y]) break;
vis[y]=1;
}
}
}
