제출 #1054917

#제출 시각아이디문제언어결과실행 시간메모리
1054917WarinchaiIsland Hopping (JOI24_island)C++17
0 / 100
3 ms344 KiB
#include "island.h" #include<bits/stdc++.h> using namespace std; void solve(int N, int L) { int ar[305]; int vis[305]; for(int i=1;i<=N-1;i++){ ar[i]=query(1,i); } vis[1]=1; for(int i=1;i<=N-1;i++){ if(!vis[ar[i]]){ vis[ar[i]]++; int cur=1; int x; while(!vis[x=query(ar[i],cur)]){ vis[x]++; answer(x,ar[i]); cur++; } } } }
#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...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...