UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#78912#759. cyanQval10071ms1288kbC++112.9kb2019-10-06 08:15:272019-10-06 08:15:28

answer


详细

小提示:点击横条可展开更详细的信息

Subtask #1:

score: 20
Accepted

Test #1:

score: 20
Accepted
time: 0ms
memory: 1172kb

input:

3
2 3 3

output:

2672

result:

ok 1 number(s): "2672"

Test #2:

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

input:

8
1 1 1 1 1 1 1 1

output:

40320

result:

ok 1 number(s): "40320"

Subtask #2:

score: 20
Accepted

Test #3:

score: 20
Accepted
time: 0ms
memory: 1172kb

input:

10
2 2 1 1 1 1 1 1 1 1

output:

167650560

result:

ok 1 number(s): "167650560"

Test #4:

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

input:

10
2 1 1 2 2 1 2 2 1 2

output:

593833159

result:

ok 1 number(s): "593833159"

Test #5:

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

input:

10
2 2 2 2 2 2 2 2 2 2

output:

330735244

result:

ok 1 number(s): "330735244"

Subtask #3:

score: 20
Accepted

Test #6:

score: 20
Accepted
time: 19ms
memory: 1280kb

input:

50
75 75 75 75 75 75 75 75 75 75 75 75 75 75 75 75 75 75 75 75 75 75 75 75 75 75 75 75 75 75 75 75 7...

output:

511128381

result:

ok 1 number(s): "511128381"

Test #7:

score: 0
Accepted
time: 31ms
memory: 1288kb

input:

50
100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 1...

output:

350430451

result:

ok 1 number(s): "350430451"

Subtask #4:

score: 40
Accepted

Test #8:

score: 40
Accepted
time: 10ms
memory: 1260kb

input:

50
29 19 60 18 55 73 75 56 65 73 98 95 27 1 6 35 31 22 18 11 71 54 8 16 23 23 43 96 81 26 94 97 8 81...

output:

854153619

result:

ok 1 number(s): "854153619"

Test #9:

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

input:

50
26 78 46 13 92 6 65 48 60 85 70 4 88 15 39 66 61 65 89 78 65 95 6 3 77 46 60 14 91 11 41 78 90 26...

output:

426182324

result:

ok 1 number(s): "426182324"