QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#82922#2947. Ball of Whacksxiaowuc1AC ✓4ms3476kbC++174.2kb2023-03-01 02:59:082023-03-01 02:59:15

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3376kb

input:

10 1 2 3 4 5 6 7 8 9 10
10 1 2 7 13 22 28 29 24 18 10
10 1 2 3 4 5 6 7 8 9 10

output:

Yes

result:

ok single line: 'Yes'

Test #2:

score: 0
Accepted
time: 0ms
memory: 3408kb

input:

25 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
3 1 2 3
2 1 2

output:

Yes

result:

ok single line: 'Yes'

Test #3:

score: 0
Accepted
time: 0ms
memory: 3444kb

input:

24 1 4 5 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 24 25 26 27 30
5 1 2 3 4 5
1 1

output:

No

result:

ok single line: 'No'

Test #4:

score: 0
Accepted
time: 2ms
memory: 3400kb

input:

25 1 11 26 25 30 24 17 18 10 19 20 6 27 16 15 23 29 28 22 13 7 14 8 3 2
2 1 6
3 1 5 10

output:

Yes

result:

ok single line: 'Yes'

Test #5:

score: 0
Accepted
time: 2ms
memory: 3364kb

input:

2 1 6
22 1 10 16 26 25 19 24 18 17 9 5 30 29 28 22 14 23 15 8 4 3 2
6 1 3 2 6 11 20

output:

Yes

result:

ok single line: 'Yes'

Test #6:

score: 0
Accepted
time: 2ms
memory: 3380kb

input:

14 1 19 10 5 9 16 13 14 15 8 4 12 7 3
15 1 26 30 25 24 16 9 17 18 10 19 20 6 2 7
1 1

output:

Yes

result:

ok single line: 'Yes'

Test #7:

score: 0
Accepted
time: 2ms
memory: 3440kb

input:

15 1 18 10 19 26 30 25 6 20 22 27 13 12 21 11
2 1 5
13 1 24 29 30 27 21 26 25 20 19 18 10 5

output:

Yes

result:

ok single line: 'Yes'

Test #8:

score: 0
Accepted
time: 2ms
memory: 3376kb

input:

2 1 5
4 1 2 7 12
24 1 4 5 10 19 20 9 17 18 24 16 3 14 8 15 23 28 29 30 25 26 27 22 13

output:

Yes

result:

ok single line: 'Yes'

Test #9:

score: 0
Accepted
time: 2ms
memory: 3396kb

input:

2 1 5
22 1 5 10 24 9 4 8 23 15 16 17 18 19 21 26 27 14 22 28 29 30 25
6 1 5 18 10 19 20

output:

Yes

result:

ok single line: 'Yes'

Test #10:

score: 0
Accepted
time: 0ms
memory: 3380kb

input:

24 1 2 25 24 29 30 26 3 5 4 9 17 16 14 8 15 23 28 27 22 13 7 12 21
3 1 10 5
3 1 5 10

output:

Yes

result:

ok single line: 'Yes'

Test #11:

score: 0
Accepted
time: 2ms
memory: 3460kb

input:

22 1 6 29 24 30 26 25 19 20 11 28 22 8 23 16 15 14 13 12 7 3 2
2 1 6
6 1 10 5 2 3 4

output:

Yes

result:

ok single line: 'Yes'

Test #12:

score: 0
Accepted
time: 2ms
memory: 3376kb

input:

18 1 7 12 21 11 20 30 25 19 24 17 18 10 5 4 3 2 6
7 1 9 15 8 4 5 10
5 1 6 2 3 4

output:

Yes

result:

ok single line: 'Yes'

Test #13:

score: 0
Accepted
time: 2ms
memory: 3440kb

input:

25 1 2 13 18 24 29 30 4 8 14 15 23 16 17 9 5 10 19 25 26 27 21 12 7 3
3 1 6 2
2 1 5

output:

Yes

result:

ok single line: 'Yes'

Test #14:

score: 0
Accepted
time: 0ms
memory: 3348kb

input:

8 1 10 19 20 25 30 24 18
21 1 4 3 2 7 12 13 28 22 14 8 15 23 16 24 17 9 5 10 18 19
1 1

output:

No

result:

ok single line: 'No'

Test #15:

score: 0
Accepted
time: 2ms
memory: 3376kb

input:

9 1 13 7 12 21 11 6 2 3
18 1 12 22 15 9 5 4 3 8 14 13 7 2 6 11 10 19 20
3 1 2 7

output:

No

result:

ok single line: 'No'

Test #16:

score: 0
Accepted
time: 4ms
memory: 3380kb

input:

23 1 5 10 18 19 27 26 22 28 8 15 7 2 3 4 9 24 17 16 23 29 30 25
2 1 2
5 1 2 7 12 13

output:

No

result:

ok single line: 'No'

Test #17:

score: 0
Accepted
time: 3ms
memory: 3436kb

input:

16 1 8 14 23 29 28 22 13 7 2 15 16 17 9 4 3
7 1 2 8 4 3 7 12
7 1 4 16 9 5 10 19

output:

No

result:

ok single line: 'No'

Test #18:

score: 0
Accepted
time: 4ms
memory: 3472kb

input:

3 1 6 2
21 1 2 6 3 27 16 15 23 28 8 14 22 13 7 12 21 11 20 25 19 10
6 1 3 13 7 2 6

output:

No

result:

ok single line: 'No'

Test #19:

score: 0
Accepted
time: 1ms
memory: 3380kb

input:

24 1 5 2 12 6 11 21 27 10 19 18 17 16 14 15 23 28 22 13 7 3 8 4 9
5 1 2 3 7 12
2 1 5

output:

No

result:

ok single line: 'No'

Test #20:

score: 0
Accepted
time: 2ms
memory: 3348kb

input:

23 1 5 19 10 18 16 11 20 25 26 30 24 17 6 2 7 3 29 23 15 8 4 9
7 1 11 6 20 19 25 2
1 1

output:

No

result:

ok single line: 'No'

Test #21:

score: 0
Accepted
time: 2ms
memory: 3376kb

input:

6 1 10 5 9 4 8
23 1 6 2 7 12 11 20 10 18 19 25 29 15 16 5 9 17 24 30 26 3 8 14
1 1

output:

No

result:

ok single line: 'No'

Test #22:

score: 0
Accepted
time: 2ms
memory: 3372kb

input:

6 1 11 6 2 12 7
23 1 5 10 11 26 21 12 15 14 13 27 22 28 23 16 8 4 9 17 29 30 24 18
1 1

output:

No

result:

ok single line: 'No'

Test #23:

score: 0
Accepted
time: 2ms
memory: 3372kb

input:

5 1 3 7 2 6
24 1 5 9 17 23 6 2 4 8 3 7 13 14 22 28 29 24 30 12 27 21 26 25 11
1 1

output:

No

result:

ok single line: 'No'

Test #24:

score: 0
Accepted
time: 1ms
memory: 3476kb

input:

9 1 22 13 14 15 8 4 3 2
8 1 21 12 11 6 25 20 19
13 1 2 3 4 5 6 7 8 9 10 11 12 13

output:

No

result:

ok single line: 'No'

Test #25:

score: 0
Accepted
time: 0ms
memory: 3380kb

input:

5 1 5 4 3 8
24 1 5 10 19 25 20 6 11 21 12 23 29 26 27 28 22 14 13 7 2 3 8 4 9
1 1

output:

No

result:

ok single line: 'No'

Test #26:

score: 0
Accepted
time: 2ms
memory: 3380kb

input:

1 1
3 1 10 5
25 1 5 21 27 23 19 26 25 10 17 18 24 30 29 28 22 13 14 15 16 9 4 8 3 7

output:

No

result:

ok single line: 'No'

Test #27:

score: 0
Accepted
time: 0ms
memory: 3440kb

input:

23 1 2 8 3 4 5 10 19 18 9 17 24 30 25 26 13 28 16 23 15 14 22 27
5 1 17 9 10 5
1 1

output:

No

result:

ok single line: 'No'

Test #28:

score: 0
Accepted
time: 0ms
memory: 3384kb

input:

28 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
1 1
1 1

output:

Yes

result:

ok single line: 'Yes'

Test #29:

score: 0
Accepted
time: 2ms
memory: 3368kb

input:

26 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
3 1 2 6
1 1

output:

No

result:

ok single line: 'No'