QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#45505#4565. Rarest InsectsZhaoZiLong0 327ms4140kbC++141.5kb2022-08-24 12:03:452022-08-24 12:04:10

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 0
Wrong Answer
time: 253ms
memory: 3992kb

input:

6
1
1
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
...

output:

8
0 0
8
0 1
8
2
8
0 2
8
2
8
0 3
8
2
8
1 0
8
2
8
0 4
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 ...

result:

wrong answer Too many queries.

Subtask #2:

score: 0
Wrong Answer

Test #24:

score: 0
Wrong Answer
time: 292ms
memory: 4140kb

input:

1000
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2...

output:

8
0 0
8
0 1
8
2
8
1 0
8
2
8
0 2
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 ...

result:

wrong answer Too many queries.

Subtask #3:

score: 0
Wrong Answer

Test #43:

score: 75
Accepted
time: 2ms
memory: 3764kb

input:

2
2
1

output:

8
0 0
8
0 1
8
2
8
1 0
8
2
8
3 2

result:

ok 

Test #44:

score: 75
Accepted
time: 1ms
memory: 3700kb

input:

2
1

output:

8
0 0
8
0 1
8
2
8
3 1

result:

ok 

Test #45:

score: 0
Wrong Answer
time: 327ms
memory: 4140kb

input:

3
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
...

output:

8
0 0
8
0 1
8
2
8
0 2
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 0
8
2
8
1 ...

result:

wrong answer Too many queries.