QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#621874#8650. Island Hoppinghhoppitree#0 1ms3980kbC++17364b2024-10-08 17:50:482024-10-08 17:50:49

Judging History

你现在查看的是最新测评结果

  • [2024-10-08 17:50:49]
  • 评测
  • 测评结果:0
  • 用时:1ms
  • 内存:3980kb
  • [2024-10-08 17:50:48]
  • 提交

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]