QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#306556#2803. StringsqiuzxAC ✓254ms57612kbC++171.6kb2024-01-16 21:31:092024-01-16 21:31:10

详细

Test #1:

score: 100
Accepted
time: 2ms
memory: 4256kb

input:

2500
0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcde...

output:

322534771

result:

ok single line: '322534771'

Test #2:

score: 0
Accepted
time: 2ms
memory: 4316kb

input:

2500
0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcde...

output:

906772031

result:

ok single line: '906772031'

Test #3:

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

input:

2500
0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcde...

output:

616587579

result:

ok single line: '616587579'

Test #4:

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

input:

2500
0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcdefghij0123456789abcde...

output:

720171125

result:

ok single line: '720171125'

Test #5:

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

input:

3
foobar
SUB 0 0 3
APP 1 1

output:

648

result:

ok single line: '648'

Test #6:

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

input:

10
foo
APP 0 0
APP 1 1
APP 2 2
APP 3 3
APP 4 4
APP 5 5
APP 6 6
APP 7 7
APP 8 8

output:

165888

result:

ok single line: '165888'

Test #7:

score: 0
Accepted
time: 6ms
memory: 11240kb

input:

2500
abcdef
APP 0 0
SUB 1 1 11
APP 2 2
SUB 3 1 19
APP 4 4
SUB 5 1 35
APP 6 6
SUB 7 1 67
APP 8 8
SUB 9 1 131
APP 10 10
SUB 11 1 259
APP 12 12
SUB 13 1 515
APP 14 14
SUB 15 1 1027
APP 16 16
SUB 17 1 2051
APP 18 18
SUB 19 1 4099
APP 20 20
SUB 21 1 8195
APP 22 22
SUB 23 1 16387
APP 24 24
SUB 25 1 32771
...

output:

495893544

result:

ok single line: '495893544'

Test #8:

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

input:

2500
fjayqregrpbswdjzyjuxdrejfvshlushotlnjwqzcaqrnspkgszxugxrljmgefgfvkejmazksdkvmgzzjhtlbhzwwnhaxzpdkvjjvoakzfguvutqyywcsasjylmommadlqbzvblgdququauaqdyzrikpmvgfglptpjqhzwzgruphqmyrqtiisfdsxatxrzpsfixnpcgelucoljgeixfixzghewfuetdxdytgpppyaqacbuibarepwuibzddxpkzyqvsmzpbdlamauvgljvysyrndiogxswznbbmctmk...

output:

424641712

result:

ok single line: '424641712'

Test #9:

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

input:

2500
iwjjcnhjijcupsitwiygooqhkdkcyylishhyqlylwdzyudhzkknboixcbodxpumtlkyqogtwhhndexqajuqiwukatlyuxzllayypkjhxoxeywnzcbiqiemwojxkpfehghkpocayejigfcmfrpfqacflkoysgdcjglpsvkxlmtmkvwotrcbtmvpbwgepbqmztjxnijtqewcczoesorjtztyjqddmdztysflzzeyrgeuojzvbaraihowkjyxrfuhsetnslieqtermmmdmywmqdcmwpwfzyebijtxtsfps...

output:

2622048

result:

ok single line: '2622048'

Test #10:

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

input:

1
bhnyeynpkmqycppuvjkecznozkfgsxjparyiukyhhclrtxgmkkrcnstamtnqnqdufrruiwfbubwwkoxaziscawuretvfqtzudgihbzjwpyyupwfdwaymtpkmhvqazeayyywctvploqclhyoosjosnrjorihwkriiwvcdvhkjvgrsteimvewbsckwobyqrwuwmllwfynmxxuvnmzlnjfbwwbtamiexvbsbceydvdmiycfjpsrzvkwvxqszdodvifbrhllxzprqhdgjypmimqgexneetxxceehmpwkddvzbp...

output:

109549

result:

ok single line: '109549'

Test #11:

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

input:

21
a
APP 0 0
APP 1 1
APP 2 2
APP 3 3
APP 4 4
APP 5 5
APP 6 6
APP 7 7
APP 8 8
APP 9 9
SUB 10 1 1023
SUB 11 1 1021
SUB 12 1 1019
SUB 13 1 1017
SUB 14 1 1015
SUB 15 1 1013
SUB 16 1 1011
SUB 17 1 1009
SUB 18 1 1007
SUB 19 1 1005

output:

97388

result:

ok single line: '97388'

Test #12:

score: 0
Accepted
time: 2ms
memory: 4140kb

input:

2500
a
APP 0 0
APP 1 1
APP 2 2
APP 3 3
APP 4 4
APP 5 5
APP 6 6
APP 7 7
APP 8 8
APP 9 9
APP 10 10
APP 11 11
APP 12 12
APP 13 13
APP 14 14
APP 15 15
APP 16 16
APP 17 17
APP 18 18
APP 19 19
APP 20 20
APP 21 21
APP 22 22
APP 23 23
APP 24 24
APP 25 25
APP 26 26
APP 27 27
APP 28 28
APP 29 29
APP 30 30
APP...

output:

29987358

result:

ok single line: '29987358'

Test #13:

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

input:

64
a
APP 0 0
APP 1 1
APP 2 2
APP 3 3
APP 4 4
APP 5 5
APP 6 6
APP 7 7
APP 8 8
APP 9 9
APP 10 10
APP 11 11
APP 12 12
APP 13 13
APP 14 14
APP 15 15
APP 16 16
APP 17 17
APP 18 18
APP 19 19
APP 20 20
APP 21 21
APP 22 22
APP 23 23
APP 24 24
APP 25 25
APP 26 26
APP 27 27
APP 28 28
APP 29 29
APP 30 30
APP 3...

output:

121841999

result:

ok single line: '121841999'

Test #14:

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

input:

3
foobar
SUB 0 3 3
APP 1 1

output:

0

result:

ok single line: '0'

Test #15:

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

input:

1080
ab
SUB 0 0 1
SUB 0 0 2
APP 2 1
APP 3 2
APP 4 3
APP 5 4
APP 6 5
APP 7 6
APP 8 7
APP 9 8
APP 10 9
APP 11 10
APP 12 11
APP 13 12
APP 14 13
APP 15 14
APP 16 15
APP 17 16
APP 18 17
APP 19 18
APP 20 19
APP 21 20
APP 22 21
APP 23 22
APP 24 23
APP 25 24
APP 26 25
APP 27 26
APP 28 27
APP 29 28
APP 30 29...

output:

868519508

result:

ok single line: '868519508'

Test #16:

score: 0
Accepted
time: 114ms
memory: 30756kb

input:

2401
abc
APP 0 0
APP 0 1
APP 0 2
APP 0 3
APP 0 4
APP 0 5
APP 0 6
APP 0 7
APP 0 8
APP 0 9
APP 0 10
APP 0 11
APP 0 12
APP 0 13
APP 0 14
APP 0 15
APP 0 16
APP 0 17
APP 0 18
APP 0 19
APP 0 20
APP 0 21
APP 0 22
APP 0 23
APP 0 24
APP 0 25
APP 0 26
APP 0 27
APP 0 28
APP 0 29
APP 0 30
APP 0 31
APP 0 32
APP ...

output:

31556028

result:

ok single line: '31556028'

Test #17:

score: 0
Accepted
time: 234ms
memory: 57444kb

input:

2401
abc
APP 0 0
APP 1 0
APP 2 0
APP 3 0
APP 4 0
APP 5 0
APP 6 0
APP 7 0
APP 8 0
APP 9 0
APP 10 0
APP 11 0
APP 12 0
APP 13 0
APP 14 0
APP 15 0
APP 16 0
APP 17 0
APP 18 0
APP 19 0
APP 20 0
APP 21 0
APP 22 0
APP 23 0
APP 24 0
APP 25 0
APP 26 0
APP 27 0
APP 28 0
APP 29 0
APP 30 0
APP 31 0
APP 32 0
APP ...

output:

31556028

result:

ok single line: '31556028'

Test #18:

score: 0
Accepted
time: 254ms
memory: 57612kb

input:

2401
abc
APP 0 0
APP 1 0
APP 2 0
APP 3 0
APP 4 0
APP 5 0
APP 6 0
APP 7 0
APP 8 0
APP 9 0
APP 10 0
APP 11 0
APP 12 0
APP 13 0
APP 14 0
APP 15 0
APP 16 0
APP 17 0
APP 18 0
APP 19 0
APP 20 0
APP 21 0
APP 22 0
APP 23 0
APP 24 0
APP 25 0
APP 26 0
APP 27 0
APP 28 0
APP 29 0
APP 30 0
APP 31 0
APP 32 0
APP ...

output:

31555761

result:

ok single line: '31555761'

Test #19:

score: 0
Accepted
time: 96ms
memory: 30664kb

input:

2401
abc
APP 0 0
APP 0 1
APP 0 2
APP 0 3
APP 0 4
APP 0 5
APP 0 6
APP 0 7
APP 0 8
APP 0 9
APP 0 10
APP 0 11
APP 0 12
APP 0 13
APP 0 14
APP 0 15
APP 0 16
APP 0 17
APP 0 18
APP 0 19
APP 0 20
APP 0 21
APP 0 22
APP 0 23
APP 0 24
APP 0 25
APP 0 26
APP 0 27
APP 0 28
APP 0 29
APP 0 30
APP 0 31
APP 0 32
APP ...

output:

31555761

result:

ok single line: '31555761'