QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#523273#881. Gig CombinatoricsHuangHanShengWA 35ms8860kbC++201.3kb2024-08-18 00:25:022024-08-18 00:25:03

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

9
1 1 1 2 2 2 3 3 3

output:

63

result:

ok answer is '63'

Test #2:

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

input:

8
1 2 1 2 3 1 2 3

output:

15

result:

ok answer is '15'

Test #3:

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

input:

310
1 2 3 2 2 3 2 3 2 1 2 3 2 3 2 1 2 1 1 2 1 2 3 3 2 2 3 3 2 2 1 1 2 3 2 2 3 2 3 2 1 2 3 2 3 2 1 2 1 1 2 1 2 3 3 2 2 3 3 2 2 2 1 2 3 2 2 3 2 3 2 1 2 3 2 3 2 1 2 1 1 2 1 2 3 3 2 2 3 3 2 2 2 1 2 3 2 2 3 2 3 2 1 2 3 2 3 2 1 2 1 1 2 1 2 3 3 2 2 3 3 2 2 1 1 2 3 2 2 3 2 3 2 1 2 3 2 3 2 1 2 1 1 2 1 2 3 3 ...

output:

265702265

result:

ok answer is '265702265'

Test #4:

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

input:

102
1 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 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 2 2 3

output:

976371284

result:

ok answer is '976371284'

Test #5:

score: -100
Wrong Answer
time: 35ms
memory: 8860kb

input:

1000000
1 1 1 3 1 3 3 2 3 3 1 2 2 2 1 1 1 1 3 3 2 2 3 2 3 1 3 3 3 3 2 3 3 2 3 1 3 3 2 3 3 3 3 2 2 3 1 3 1 3 2 1 2 2 2 1 3 1 3 3 1 1 1 3 3 3 1 3 1 1 1 3 3 3 3 2 3 3 1 1 3 1 2 1 2 3 2 2 2 1 2 2 2 2 3 2 2 3 2 2 3 3 3 1 2 2 2 1 2 1 2 1 1 3 2 2 1 3 1 3 3 3 1 2 1 3 3 3 1 2 2 1 1 2 2 3 1 2 1 2 2 3 2 2 1 3 ...

output:

208173866

result:

wrong answer expected '208340906', found '208173866'