QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#600572#7328. Card ShufflingUrdWA 24ms3684kbC++17561b2024-09-29 17:28:412024-09-29 17:28:42

详细

Test #1:

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

input:

5
1 3 2 4 0

output:

13

result:

ok 1 number(s): "13"

Test #2:

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

input:

2
0 1

output:

0

result:

ok 1 number(s): "0"

Test #3:

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

input:

1
0

output:

0

result:

ok 1 number(s): "0"

Test #4:

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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: 2ms
memory: 3580kb

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

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

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

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

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

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

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

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: 0
Accepted
time: 9ms
memory: 3624kb

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:

1729432

result:

ok 1 number(s): "1729432"

Test #42:

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

input:

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

output:

71

result:

ok 1 number(s): "71"

Test #43:

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

input:

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

output:

7

result:

ok 1 number(s): "7"

Test #44:

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

input:

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

output:

35

result:

ok 1 number(s): "35"

Test #45:

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

input:

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

output:

1467315

result:

ok 1 number(s): "1467315"

Test #46:

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

input:

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

output:

23

result:

ok 1 number(s): "23"

Test #47:

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

input:

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

output:

1926095

result:

ok 1 number(s): "1926095"

Test #48:

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

input:

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

output:

143

result:

ok 1 number(s): "143"

Test #49:

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

input:

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

output:

6

result:

ok 1 number(s): "6"

Test #50:

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

input:

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

output:

9

result:

ok 1 number(s): "9"

Test #51:

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

input:

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

output:

14

result:

ok 1 number(s): "14"

Test #52:

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

input:

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

output:

51

result:

ok 1 number(s): "51"

Test #53:

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

input:

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

output:

858

result:

ok 1 number(s): "858"

Test #54:

score: -100
Wrong Answer
time: 24ms
memory: 3684kb

input:

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

output:

-1

result:

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