QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#462960#6474. TetrisqiuzxAC ✓406ms141516kbC++202.4kb2024-07-04 10:28:142024-07-04 10:28:15

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 18ms
memory: 7648kb

input:

1
0

output:

4

result:

ok single line: '4'

Test #2:

score: 0
Accepted
time: 25ms
memory: 7732kb

input:

2
3 4

output:

12

result:

ok single line: '12'

Test #3:

score: 0
Accepted
time: 25ms
memory: 7756kb

input:

3
5 1 1

output:

-1

result:

ok single line: '-1'

Test #4:

score: 0
Accepted
time: 27ms
memory: 8256kb

input:

10
5 8 1 5 6 2 9 9 9 9

output:

-1

result:

ok single line: '-1'

Test #5:

score: 0
Accepted
time: 25ms
memory: 9388kb

input:

20
5 5 7 9 9 9 9 9 1 2 3 6 9 9 9 9 9 9 9 9

output:

-1

result:

ok single line: '-1'

Test #6:

score: 0
Accepted
time: 40ms
memory: 14156kb

input:

30
5 5 7 1 8 1 3 9 1 8 2 9 9 2 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9

output:

-1

result:

ok single line: '-1'

Test #7:

score: 0
Accepted
time: 29ms
memory: 11380kb

input:

40
9 9 1 9 9 9 1 7 1 1 8 9 8 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9

output:

-1

result:

ok single line: '-1'

Test #8:

score: 0
Accepted
time: 200ms
memory: 83420kb

input:

50
9 9 1 5 9 5 2 1 6 5 9 9 6 4 8 4 6 9 1 4 5 7 5 8 9 1 1 1 3 4 2 1 8 4 8 1 3 9 1 6 4 9 8 1 6 1 4 4 7 4

output:

-1

result:

ok single line: '-1'

Test #9:

score: 0
Accepted
time: 30ms
memory: 11692kb

input:

50
2 5 9 9 5 7 1 1 7 9 4 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9

output:

106

result:

ok single line: '106'

Test #10:

score: 0
Accepted
time: 26ms
memory: 9208kb

input:

37
2 5 9 9 5 7 1 1 7 9 4 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9

output:

80

result:

ok single line: '80'

Test #11:

score: 0
Accepted
time: 25ms
memory: 7728kb

input:

1
2

output:

8

result:

ok single line: '8'

Test #12:

score: 0
Accepted
time: 32ms
memory: 11880kb

input:

2
9 5

output:

42

result:

ok single line: '42'

Test #13:

score: 0
Accepted
time: 35ms
memory: 12640kb

input:

3
1 2 9

output:

78

result:

ok single line: '78'

Test #14:

score: 0
Accepted
time: 98ms
memory: 49700kb

input:

16
9 6 1 3 1 1 9 9 9 9 9 9 9 9 9 9

output:

423

result:

ok single line: '423'

Test #15:

score: 0
Accepted
time: 188ms
memory: 86560kb

input:

30
9 6 1 3 1 1 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9

output:

787

result:

ok single line: '787'

Test #16:

score: 0
Accepted
time: 239ms
memory: 118380kb

input:

42
9 6 1 3 1 1 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9

output:

1099

result:

ok single line: '1099'

Test #17:

score: 0
Accepted
time: 259ms
memory: 129284kb

input:

46
9 6 1 3 1 1 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9

output:

1203

result:

ok single line: '1203'

Test #18:

score: 0
Accepted
time: 320ms
memory: 138624kb

input:

50
9 6 1 3 1 1 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9

output:

1307

result:

ok single line: '1307'

Test #19:

score: 0
Accepted
time: 82ms
memory: 46996kb

input:

50
1 2 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9

output:

1153

result:

ok single line: '1153'

Test #20:

score: 0
Accepted
time: 157ms
memory: 64512kb

input:

50
4 8 1 9 5 8 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9

output:

1107

result:

ok single line: '1107'

Test #21:

score: 0
Accepted
time: 299ms
memory: 135612kb

input:

49
9 6 1 3 1 1 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9

output:

1281

result:

ok single line: '1281'

Test #22:

score: 0
Accepted
time: 138ms
memory: 60036kb

input:

50
9 1 6 9 9 9 9 9 4 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9

output:

1104

result:

ok single line: '1104'

Test #23:

score: 0
Accepted
time: 288ms
memory: 133680kb

input:

48
9 6 1 3 1 1 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9

output:

1255

result:

ok single line: '1255'

Test #24:

score: 0
Accepted
time: 134ms
memory: 51624kb

input:

15
1 6 1 8 1 8 1 8 1 8 1 8 1 8 1

output:

168

result:

ok single line: '168'

Test #25:

score: 0
Accepted
time: 406ms
memory: 141516kb

input:

47
1 6 1 8 1 8 1 8 1 8 1 8 1 8 1 8 1 8 1 8 1 8 1 8 1 8 1 8 1 8 1 8 1 8 1 8 1 8 1 8 1 8 1 8 1 8 1

output:

520

result:

ok single line: '520'