QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#621874 | #8650. Island Hopping | hhoppitree# | 0 | 1ms | 3980kb | C++17 | 364b | 2024-10-08 17:50:48 | 2024-10-08 17:50:49 |
answer
#include "island.h"
#include <bits/stdc++.h>
using namespace std;
const int N = 505;
int vis[N];
void solve(int n, int) {
for (int i = vis[1] = 1, x; i < n; ++i) {
if (vis[x = query(1, x)]++) continue;
for (int j = 1, y; ; ++j) {
if (vis[y = query(x, j)]++) continue;
answer(x, y);
}
}
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 0
Wrong Answer
Test #1:
score: 0
Wrong Answer
time: 1ms
memory: 3788kb
input:
3 9
output:
2 -1
result:
wrong answer Wrong Answer [2]
Subtask #2:
score: 0
Wrong Answer
Test #4:
score: 0
Wrong Answer
time: 1ms
memory: 3976kb
input:
299 89401
output:
2 -1
result:
wrong answer Wrong Answer [2]
Subtask #3:
score: 0
Wrong Answer
Test #9:
score: 0
Wrong Answer
time: 0ms
memory: 3796kb
input:
299 598
output:
2 -1
result:
wrong answer Wrong Answer [2]
Subtask #4:
score: 0
Wrong Answer
Test #15:
score: 0
Wrong Answer
time: 0ms
memory: 3972kb
input:
299 89401
output:
2 -1
result:
wrong answer Wrong Answer [2]
Subtask #5:
score: 0
Wrong Answer
Test #23:
score: 0
Wrong Answer
time: 0ms
memory: 3796kb
input:
299 897
output:
2 -1
result:
wrong answer Wrong Answer [2]
Subtask #6:
score: 0
Wrong Answer
Test #32:
score: 0
Wrong Answer
time: 0ms
memory: 3976kb
input:
300 90000
output:
2 -1
result:
wrong answer Wrong Answer [2]
Subtask #7:
score: 0
Wrong Answer
Test #58:
score: 0
Wrong Answer
time: 1ms
memory: 3980kb
input:
300 900
output:
2 -1
result:
wrong answer Wrong Answer [2]
Subtask #8:
score: 0
Wrong Answer
Test #84:
score: 0
Wrong Answer
time: 1ms
memory: 3972kb
input:
299 598
output:
2 -1
result:
wrong answer Wrong Answer [2]