QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#877283#4869. Brilliant Programmers ShowMaMengQiAC ✓588ms19396kbC++14634b2025-01-31 20:52:322025-01-31 20:52:37

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 588ms
memory: 19396kb

input:

4
1 0 0 3
4
1 0 0 4
8
1 0 0 13 4 3 2 1
8
1 0 0 14 4 3 2 1
2
1 1
10
1 0 1 0 10 0 1 3 0 5
10
1 0 1 0 4 0 1 3 0 5
10
1 0 1 0 3 0 1 3 0 5
20
1 0 1 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 1 1
20
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 28
20
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 27
1000000
46 16 21 54 66 41 69 38 81 ...

output:

1
4
Unknown
4
1
Bad Rescue
1
Bad Rescue
Bad Rescue
20
Unknown
458699
Bad Rescue
Unknown
1
Unknown
Unknown
Unknown
856109
Bad Rescue
922694
Bad Rescue
846282
Bad Rescue
1
Bad Rescue
10000
Bad Rescue
Bad Rescue
Unknown
1
2
2
Bad Rescue
Unknown
Unknown
3
Unknown
Unknown
Unknown
Unknown

result:

ok 41 lines