QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#462965#6474. TetrisqiuzxAC ✓341ms142448kbC++202.4kb2024-07-04 10:34:332024-07-04 10:34:33

详细

Test #1:

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

input:

1
0

output:

4

result:

ok single line: '4'

Test #2:

score: 0
Accepted
time: 4ms
memory: 7936kb

input:

2
3 4

output:

12

result:

ok single line: '12'

Test #3:

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

input:

3
5 1 1

output:

-1

result:

ok single line: '-1'

Test #4:

score: 0
Accepted
time: 5ms
memory: 8608kb

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

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: 11ms
memory: 16156kb

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: 6ms
memory: 9544kb

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: 156ms
memory: 82056kb

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

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

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

input:

1
2

output:

8

result:

ok single line: '8'

Test #12:

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

input:

2
9 5

output:

42

result:

ok single line: '42'

Test #13:

score: 0
Accepted
time: 12ms
memory: 10812kb

input:

3
1 2 9

output:

78

result:

ok single line: '78'

Test #14:

score: 0
Accepted
time: 75ms
memory: 48240kb

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: 166ms
memory: 87024kb

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: 208ms
memory: 117416kb

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: 248ms
memory: 127312kb

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: 275ms
memory: 138296kb

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: 76ms
memory: 46120kb

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: 113ms
memory: 65404kb

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: 267ms
memory: 137716kb

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: 88ms
memory: 59844kb

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: 242ms
memory: 135440kb

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: 103ms
memory: 54280kb

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: 341ms
memory: 142448kb

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'