QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#316591#1492. Standing Out from the Herdqiuzx100 ✓30ms82736kbC++172.3kb2024-01-27 22:20:522024-01-27 22:20:52

詳細信息

Test #1:

score: 8.33333
Accepted
time: 12ms
memory: 78808kb

input:

3
amy
tommy
bessie

output:

3
11
19

result:

ok 3 lines

Test #2:

score: 8.33333
Accepted
time: 4ms
memory: 78220kb

input:

3
aaabbb
ababab
aabbaa

output:

7
7
7

result:

ok 3 lines

Test #3:

score: 8.33333
Accepted
time: 4ms
memory: 81676kb

input:

50
qnjpevjuxhzfrxcvkbsjkuurvplyuirxlgfbnqpbkqqrqfhlxu
iupluouoqwfznnubmtlxumtsjoogbdbeveyvwolpwylteqjbjr
psempoesvkftqkemsiapqhyouwfhljqdvtgvcsivhnpkdwnjqc
gbufnypcwynpqqmadzxqpytauetqsulurtalucesxqwefcoxpg
xbfuiomfbwrjpayrybocqkhohrawhjtitbtbtuqkemrebezque
fpcfeayntcyibsmviupiscosbrkakzbpllzppoyczr...

output:

1172
1172
1165
1171
1168
1173
1173
1171
1171
1169
1169
1175
1171
1171
1172
1174
1172
1170
1174
1171
1171
1170
1173
1174
1169
1172
1174
1167
1173
1175
1170
1174
1170
1171
1171
1172
1171
1170
1171
1176
1175
1174
1172
1169
1170
1177
1171
1171
1170
1171

result:

ok 50 lines

Test #4:

score: 8.33333
Accepted
time: 7ms
memory: 79984kb

input:

5
zrzzzrrzzrzzzrzzzrrzrrzzrrrzzrrrzzzrzrrzrzzzzzrrrzzzzrzzrrrrzzzrrrrzzzzrzrrrzzzrzrzrzrrzrrrzrzrzzrzrzrrzrzrrrrzrrrzzrzrrrzzzzzrrzzzzzzrzrrzrzrrzrrzzrzrrrzzrrzrzrzzzzrzzrzrrrzrrzrzzrrrzrrrrzzzrzrzzzzrrrrrzzzzzzzrzrrzzrrzzzzzzzzrzrrrzrrrzrrrzzrrzrzzrzrzzzzrzrrzrzzzzrrzrrrrzzrrzrzzrrzrrrrrrrzzrzrrrzz...

output:

119685
119639
119751
119676
119597

result:

ok 5 lines

Test #5:

score: 8.33333
Accepted
time: 3ms
memory: 78364kb

input:

5
zrrzrzzzzzrrzzzzzrrzzrrzzrrrzrzzrzrzrzzzrrzrrrrrzzrrzrrzzrrrzrzzzzrzrzzrzzrzrzrrrrrzrzrzzzzrrzzzzzrzrzrrrzzrzrzrrzzzzzrrzrzzzrrrrrzrrrzzrzzrzrrrzrrzrrrzzzzrzrrzzzrrrrrrzrzzrzzzzzrzzzrrzrrzzzrrzrrrzrrzzrzzzzrzzzrrrzrrzzrrzrrzzzrrrrrzrzrzzrrzrzrrrzrrzzzzzrrrrzrzrrzrrrzrrrzzzrzzrrzrzrrzzrzrrrzzrrrzrz...

output:

488180
488137
488272
488169
488186

result:

ok 5 lines

Test #6:

score: 8.33333
Accepted
time: 8ms
memory: 79988kb

input:

5
zderbvjbrpybtgsiaaygegijwwtupbdyxbqqtthousrxncatpfskjhhnsehunaxxvvvlekbxxplkhjjdmomvfrtytqulixxbrlundawboruxxdmvsdzdnpawqgxaedjpyctizgkboxednccdwpmpbihraolgintpjadolagkitptcreagurpxxwsyysjqlnetjtnfqyrqntrpkorjdkxnapgvyrjtbidlxfenorhxuhbcgkuywolddbfmpdiuzgdqyoxbyhthdealaeeksctvrtjurzwpqdhlebrtywggx...

output:

498238
498253
498251
498264
498253

result:

ok 5 lines

Test #7:

score: 8.33333
Accepted
time: 16ms
memory: 80168kb

input:

5
xgmsmixoowqaghvcreldfwfvbfzqrvstvtsmkrlyymdpormszcxdrxldnmozrdfeapzmsfwvqyobimtiwpvcvqhvxtcdweqdtoyesbnrmysxhxtxfvqbfaxwnzyssgoqkeddwmlsbtsvryqnhjtvdffwifxetwrkuwmwnyycmpqgxtxuoskisogvqynqgjvpcymiavaepzzdldlbfpkbtstryzojwcykycdurcupeokmotunmcpqroyazpygellnootyreoidbjbsapspikekoubwfasyuxezwqzyeeueq...

output:

398022
354299
322339
237510
263616

result:

ok 5 lines

Test #8:

score: 8.33333
Accepted
time: 7ms
memory: 78556kb

input:

2
bbabababbaababaabaabbaabbabaaabbaaabbbbaaaaaaaaaaabbbaaaaaabaabaaaaabbbaaaabaabbbbbbbbbbaababbbabbbaaabaabbaababbabbaabaabaabbaababbababaaabababbabbabbaaaaaabaabaabbbbbabbbbbabbaabaaaaabbbabababbbbbaaaaababbabbbaabbbbabbbbbbbbaababbaabaabaaabaabbbbbbabbabbbababbbbaaaaababaaabaabaabaaabbbaaaabbbbab...

output:

11924617
11924790

result:

ok 2 lines

Test #9:

score: 8.33333
Accepted
time: 29ms
memory: 80992kb

input:

10000
chbeckpuir
krcihpeucb
ipbcceukrh
eiuhrkcpcb
rccikbhuep
cubrpcheik
rcehpkciub
brkicuepch
ipcherubkc
cbkihpruec
crbkpuiche
cbhcekprui
khebriupcc
cbhkiceurp
ccrbikupeh
cpikcerhub
ckrcupbeih
pcriecubhk
hpbikcuecr
khciuepbrc
rbcckiheup
cihucprkeb
kucehrbicp
pebihrccku
icrekcbphu
rbckhepuci
crceikhb...

output:

14
10
14
12
14
11
15
13
14
17
13
11
14
5
16
12
14
13
15
14
10
13
13
16
13
13
8
8
6
8
5
11
12
15
14
9
12
12
12
8
13
11
15
12
14
12
13
15
11
12
13
15
12
13
15
14
8
12
15
11
14
11
11
14
14
14
13
10
12
2
14
13
11
12
11
14
15
12
12
11
8
11
13
8
12
11
11
13
6
13
13
10
11
15
13
15
10
13
11
14
14
9
11
16
12...

result:

ok 10000 lines

Test #10:

score: 8.33333
Accepted
time: 30ms
memory: 82084kb

input:

20000
nddhd
ppnvo
fharq
enlkd
pyjez
mdtql
jnhwz
nydtw
jffre
iypzo
gpbeg
udmos
qbhly
libsc
rkdco
zrerb
ferfq
bsosq
pmjly
jdwal
fdead
owttg
bnjdh
qvume
pgxhv
gwgmk
mnqig
nfegl
rqeev
whrvk
frmeq
eikyw
qgngb
fiiif
jlkpq
hjeyh
fythr
wcsiz
vvgxw
mluyy
xcnnn
vkmkx
ctptq
veggd
lxqin
sejro
htovc
liafj
uyklu
...

output:

1
4
3
2
3
3
3
4
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
2
3
3
3
2
4
3
3
3
3
3
2
2
3
3
2
2
3
3
3
2
2
3
4
3
3
3
3
3
2
3
3
2
3
2
3
3
3
3
3
3
3
3
3
3
3
3
3
3
4
4
3
3
3
3
3
2
3
3
3
2
3
3
3
3
4
2
3
3
3
3
4
3
3
3
3
3
2
3
3
3
3
3
3
3
3
4
3
3
4
4
3
3
2
3
3
3
4
3
3
3
3
4
3
3
3
3
3
3
3
0
3
3
3
3
3
3
3
...

result:

ok 20000 lines

Test #11:

score: 8.33333
Accepted
time: 20ms
memory: 80492kb

input:

2
kdyaqyzpjetrxyxmfethvmypqlrtlriyhnrxsncurboavnmoxwmlkvriqtabmtgpjvvhfdmkklndgrjutgvhddwmiznmqmtvkpkkmlreysenzcefwiuprenoazslkauxvlcbdoijaeivuhwpbdggptvsdayozeaayzovfekdtajcinuttiarebotrjgnzpnqxoyuleubpotfpeqelhmhhkhkrllylsmcgyqhfexruutfalkdxxihwqowrycsrvucwtstujoshyfueklrnxyurwtzcgtybqougnfsbeppen...

output:

1249868277
1249868127

result:

ok 2 lines

Test #12:

score: 8.33333
Accepted
time: 16ms
memory: 82736kb

input:

4
hethsmghxoffmnhrgtlgtxpvqorayujiownlybqncnwmefsrhkyringafinuhuohlrhblvbhbwnkfilbxupltkbwlpgrxqqlouwpufckcahxusiquqxrtawmqchtkmxuaaeszpdtlitnsuqcwqzclggudoqeermlamdpiyikibekdckvwrospmdgrnuupadjjpmvvdhegircdwpmapdzvmrckvceubgtdxfrddonkkdkjbhhsnjkpcfjwsbzfnbpjbdwtctngvxjhxcdbjddgsxlgrflrzfrasuyidhpeq...

output:

312433132
312433084
312433034
312433208

result:

ok 4 lines