QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#600569#7328. Card ShufflingUrdWA 3ms3712kbC++17561b2024-09-29 17:28:212024-09-29 17:28:22

詳細信息

Test #1:

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

input:

5
1 3 2 4 0

output:

13

result:

ok 1 number(s): "13"

Test #2:

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

input:

2
0 1

output:

0

result:

ok 1 number(s): "0"

Test #3:

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

input:

1
0

output:

0

result:

ok 1 number(s): "0"

Test #4:

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

input:

10
6 5 4 7 0 8 1 3 2 9

output:

4

result:

ok 1 number(s): "4"

Test #5:

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

input:

10
1 2 3 4 0 8 9 7 6 5

output:

15

result:

ok 1 number(s): "15"

Test #6:

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

input:

10
1 8 4 5 6 7 3 2 0 9

output:

63

result:

ok 1 number(s): "63"

Test #7:

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

input:

11
7 3 9 0 4 1 5 10 8 6 2

output:

3

result:

ok 1 number(s): "3"

Test #8:

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

input:

11
0 4 8 7 5 9 3 10 6 2 1

output:

0

result:

ok 1 number(s): "0"

Test #9:

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

input:

11
1 3 4 5 6 7 8 10 9 2 0

output:

139

result:

ok 1 number(s): "139"

Test #10:

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

input:

12
9 6 3 1 2 7 0 10 11 8 4 5

output:

14

result:

ok 1 number(s): "14"

Test #11:

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

input:

12
1 2 6 7 5 4 3 8 9 10 11 0

output:

1975

result:

ok 1 number(s): "1975"

Test #12:

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

input:

12
1 3 2 5 7 11 4 6 10 9 8 0

output:

525

result:

ok 1 number(s): "525"

Test #13:

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

input:

13
3 6 7 5 11 1 10 4 8 12 2 0 9

output:

197

result:

ok 1 number(s): "197"

Test #14:

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

input:

13
1 2 8 4 5 11 7 0 3 10 12 6 9

output:

35

result:

ok 1 number(s): "35"

Test #15:

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

input:

13
1 3 4 5 12 7 8 9 10 11 6 2 0

output:

807

result:

ok 1 number(s): "807"

Test #16:

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

input:

14
6 13 5 11 12 0 3 4 8 10 1 7 9 2

output:

5

result:

ok 1 number(s): "5"

Test #17:

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

input:

14
2 1 4 0 5 10 12 8 6 11 9 7 3 13

output:

6

result:

ok 1 number(s): "6"

Test #18:

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

input:

14
3 1 4 0 6 7 8 9 10 11 12 13 2 5

output:

4

result:

ok 1 number(s): "4"

Test #19:

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

input:

15
10 14 2 6 3 8 1 9 12 0 4 13 11 5 7

output:

38

result:

ok 1 number(s): "38"

Test #20:

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

input:

15
1 2 10 4 5 0 7 6 9 3 11 12 13 14 8

output:

15

result:

ok 1 number(s): "15"

Test #21:

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

input:

15
2 0 8 5 1 9 4 14 6 7 11 10 13 3 12

output:

1

result:

ok 1 number(s): "1"

Test #22:

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

input:

16
14 15 6 3 11 12 8 13 1 4 7 5 10 2 0 9

output:

338

result:

ok 1 number(s): "338"

Test #23:

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

input:

16
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0

output:

32767

result:

ok 1 number(s): "32767"

Test #24:

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

input:

16
8 3 4 5 6 7 1 9 10 11 12 13 14 15 2 0

output:

10705

result:

ok 1 number(s): "10705"

Test #25:

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

input:

17
1 15 12 3 0 5 6 2 14 8 7 4 11 16 9 10 13

output:

7

result:

ok 1 number(s): "7"

Test #26:

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

input:

17
7 13 11 9 3 6 16 5 4 1 10 8 12 14 15 2 0

output:

14990

result:

ok 1 number(s): "14990"

Test #27:

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

input:

17
7 12 5 3 0 1 8 11 2 9 6 15 14 13 16 10 4

output:

4

result:

ok 1 number(s): "4"

Test #28:

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

input:

18
13 4 7 16 6 5 0 15 8 3 10 17 2 12 11 1 9 14

output:

7

result:

ok 1 number(s): "7"

Test #29:

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

input:

18
16 11 3 6 5 2 0 1 7 9 10 4 13 8 14 15 17 12

output:

7

result:

ok 1 number(s): "7"

Test #30:

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

input:

18
6 12 2 5 7 13 15 8 4 11 17 3 14 9 10 1 16 0

output:

52839

result:

ok 1 number(s): "52839"

Test #31:

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

input:

19
10 8 14 12 4 17 1 9 7 18 11 3 16 0 6 5 13 15 2

output:

43

result:

ok 1 number(s): "43"

Test #32:

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

input:

19
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 0

output:

262143

result:

ok 1 number(s): "262143"

Test #33:

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

input:

19
1 18 7 0 17 6 8 3 10 11 12 14 13 4 16 5 15 2 9

output:

5

result:

ok 1 number(s): "5"

Test #34:

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

input:

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

output:

434

result:

ok 1 number(s): "434"

Test #35:

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

input:

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

output:

338775

result:

ok 1 number(s): "338775"

Test #36:

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

input:

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

output:

153405

result:

ok 1 number(s): "153405"

Test #37:

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

input:

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

output:

1

result:

ok 1 number(s): "1"

Test #38:

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

input:

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

output:

0

result:

ok 1 number(s): "0"

Test #39:

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

input:

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

output:

143875

result:

ok 1 number(s): "143875"

Test #40:

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

input:

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

output:

11

result:

ok 1 number(s): "11"

Test #41:

score: -100
Wrong Answer
time: 3ms
memory: 3580kb

input:

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

output:

-1

result:

wrong answer 1st numbers differ - expected: '1729432', found: '-1'