QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#113753#3323. Coin Stackslmq26052003WA 1ms3772kbC++201017b2023-06-19 10:33:232023-06-19 10:33:25

详细

Test #1:

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

input:

2
1 1

output:

yes
2 1

result:

ok 

Test #2:

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

input:

2
1 2

output:

no

result:

ok 

Test #3:

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

input:

2
1 3

output:

no

result:

ok 

Test #4:

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

input:

2
2 2

output:

yes
2 1
2 1

result:

ok 

Test #5:

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

input:

2
2 3

output:

no

result:

ok 

Test #6:

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

input:

2
2 4

output:

no

result:

ok 

Test #7:

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

input:

2
0 0

output:

yes

result:

ok 

Test #8:

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

input:

2
0 1

output:

no

result:

ok 

Test #9:

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

input:

2
0 2

output:

no

result:

ok 

Test #10:

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

input:

3
1 4 6

output:

no

result:

ok 

Test #11:

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

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: 0ms
memory: 3628kb

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: 3672kb

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: 1ms
memory: 3688kb

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
50 49
50 49
50 49
50 49
50 49
50 49
50 49
50 49
50 49
50 49
50 49
50 49
50 49
50 49
50 49
50 49
50 49
50 49
50 49
48 47
48 47
48 47
48 47
48 47
48 47
48 47
48 47
48 47
48 47
48 47
48 47
48 47
48 47
48 47
48 47
48 47
48 47
48 47
48 47
46 45
46 45
46 45
46 45
46 45
46 45
46 45
46 45
46 45
46...

result:

ok 

Test #15:

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

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: 3560kb

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: 3560kb

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: 3516kb

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: 0ms
memory: 3728kb

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: -100
Wrong Answer
time: 0ms
memory: 3632kb

input:

3
16 15 17

output:

no

result:

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