UOJ Logo

NOI.AC

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#104894#759. cSamsara_soul100308ms1968kbC++1.6kb2020-05-30 07:56:552020-05-30 07:56:57

answer


Details

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

Subtask #1:

score: 20
Accepted

Test #1:

score: 20
Accepted
time: 3ms
memory: 736kb

input:

3
2 3 3

output:

2672

result:

ok 1 number(s): "2672"

Test #2:

score: 0
Accepted
time: 3ms
memory: 756kb

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: 4ms
memory: 772kb

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

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: 3ms
memory: 772kb

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: 79ms
memory: 1716kb

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: 142ms
memory: 1968kb

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: 39ms
memory: 1440kb

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: 35ms
memory: 1476kb

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"