QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#485804#5631. Robotslmq26052003100 ✓659ms5064kbC++231.5kb2024-07-21 09:39:002024-07-21 09:39:00

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 659ms
memory: 5064kb

input:

500
1 26
3 14 15 25 16 15 24 14 2 20 3 15 23 1 11 2 20 7 4 15 16 1 14 13 0 21
19 21 13 24 16 15 17 25 5 6 15 18 21 1 13 25 23 13 20 13 9 3 1 17 2 9
2 33
10 0 27 17 14 1 31 4 2 12 32 29 9 2 13 3 5 29 29 29 13 29 26 18 20 24 21 22 13 7 5 6 30
32 32 11 17 25 30 23 25 27 30 12 6 0 29 8 11 12 14 21 29 25...

output:

1 YES
2 NO
3 YES
4 NO
5 NO
6 NO
7 YES
8 YES
9 YES
10 YES
11 YES
12 YES
13 YES
14 NO
15 NO
16 NO
17 YES
18 YES
19 NO
20 NO
21 NO
22 NO
23 YES
24 YES
25 YES
26 NO
27 YES
28 YES
29 NO
30 NO
31 YES
32 NO
33 YES
34 NO
35 YES
36 YES
37 NO
38 NO
39 NO
40 YES
41 YES
42 YES
43 NO
44 NO
45 YES
46 YES
47 NO
48...

result:

ok 500 lines