QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#113772#3323. Coin Stackslmq26052003WA 1ms3736kbC++201.5kb2023-06-19 11:24:272023-06-19 11:24:28

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3724kb

input:

2
1 1

output:

yes
2 1

result:

ok 

Test #2:

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

input:

2
1 2

output:

no

result:

ok 

Test #3:

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

input:

2
1 3

output:

no

result:

ok 

Test #4:

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

input:

2
2 2

output:

yes
2 1
2 1

result:

ok 

Test #5:

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

input:

2
2 3

output:

no

result:

ok 

Test #6:

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

input:

2
2 4

output:

no

result:

ok 

Test #7:

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

input:

2
0 0

output:

yes

result:

ok 

Test #8:

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

input:

2
0 1

output:

no

result:

ok 

Test #9:

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

input:

2
0 2

output:

no

result:

ok 

Test #10:

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

input:

3
1 4 6

output:

no

result:

ok 

Test #11:

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

input:

3
1 5 6

output:

yes
3 2
3 2
3 2
3 2
3 2
3 1

result:

ok 

Test #12:

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

input:

50
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

output:

yes

result:

ok 

Test #13:

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

input:

50
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

output:

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

result:

ok 

Test #14:

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

input:

50
20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20

output:

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

result:

ok 

Test #15:

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

input:

50
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1000

output:

no

result:

ok 

Test #16:

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

input:

50
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 951

output:

no

result:

ok 

Test #17:

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

input:

50
2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 902

output:

no

result:

ok 

Test #18:

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

input:

41
17 11 18 18 5 10 12 20 11 9 12 6 11 3 13 20 12 2 16 11 12 12 9 0 11 19 3 14 7 5 10 19 14 19 8 6 17 2 20 16 19

output:

no

result:

ok 

Test #19:

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

input:

38
1 2 13 20 19 1 0 20 6 6 3 9 6 14 18 10 0 19 10 13 18 7 17 1 17 20 9 6 19 5 16 16 16 5 1 15 18 14

output:

yes
26 8
26 8
26 8
26 8
26 8
26 8
26 8
26 8
26 8
26 8
26 8
26 8
26 8
26 8
26 8
26 8
26 8
26 8
26 8
26 8
4 29
4 29
4 29
4 29
4 29
4 29
4 29
4 29
4 29
4 29
4 29
4 29
4 29
4 29
4 29
4 29
4 29
4 29
4 29
18 5
18 5
18 5
18 5
18 5
18 5
18 5
18 5
18 5
18 5
18 5
18 5
18 5
18 5
18 5
18 5
18 5
18 5
18 5
37 21
...

result:

ok 

Test #20:

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

input:

3
16 15 17

output:

yes
3 1
3 2
3 1
3 2
1 3
2 1
3 2
1 3
2 1
3 2
1 3
2 1
3 2
1 3
2 1
3 2
1 3
2 1
3 2
1 3
2 1
3 2
1 3
2 1

result:

ok 

Test #21:

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

input:

50
20 11 17 18 20 8 8 2 4 1 5 10 2 6 14 17 8 1 17 4 13 11 19 1 13 9 4 1 20 14 11 12 2 6 11 20 19 8 6 6 4 15 12 19 13 17 8 5 7 10

output:

no

result:

ok 

Test #22:

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

input:

27
19 6 19 13 5 15 19 20 10 1 0 17 19 6 20 13 9 17 10 12 11 7 9 14 18 12 20

output:

no

result:

ok 

Test #23:

score: -100
Wrong Answer
time: 1ms
memory: 3608kb

input:

26
4 19 8 7 12 2 14 0 10 2 8 15 16 19 12 4 1 16 18 12 6 20 14 3 7 9

output:

no

result:

wrong answer Solution exists but first line is not 'yes'