用户输出
0
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#23594 | #2032. 黑吗喽大战金池长老 | Wrong Answer | 3 | 601 ms | 2932 K | Python 3 / 855 B | Non_User3792 | 2024-12-15 22:56:45 |
data = input()
n = len(data)
data = [i for i in data]
temp = []
csgo = []
count_continue = 0
i = 1
while i < n - 1:
# print('i:',i)
left = i - 1
right = i + 1
if data[left] == data[right] == data[i] and data[left] not in temp:
temp.append(data[left])
count_continue += 1
# print(count_continue)
csgo.append(count_continue)
if i < n - 2:
if data[right] == data[right + 1]:
csgo.append(count_continue)
while right < n - 1 and data[right] == data[right + 1]:
right += 1
count_continue = 1
i = right - 1
temp = [data[right]]
else:
i = i - 2
csgo.append(count_continue)
count_continue = 0
i += 3
maxim = max(csgo)
print(maxim)
用户输出
0
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
0
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
0
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
0
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
标准错误流
Traceback (most recent call last):
File "/sandbox/2/a.py", line 31, in <module>
maxim = max(csgo)
ValueError: max() arg is an empty sequence
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 1
用户输出
0
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
0
系统信息
Exited with return code 0
用户输出
0
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
57148
kkkadddooookyinfiqiiineeewwwwguuunwuuuawwwvoaooodedocccdddntwwwsssagyowwwyacccvaaaaiiicaaawww
<57057 bytes omitted>
用户输出
0
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
57148
kkkadddooookyinfiqiiineeewwwwguuunwuuuawwwvoaooodedocccdddntwwwsssagyowwwyacccvaaaaiiicaaawww
<57057 bytes omitted>
用户输出
0
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
57148
kaaadddooooookkkyyyiiinfffiiiqqqiiinnneeewwwwggguuunnnwuawwwvvvoooaaaooodddedddooocccdddnnntt
<57057 bytes omitted>
用户输出
0
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
57148
kaaadddooooookkkyyyiiinnnfffiiiqqqiiinnneeewwgggunnnwwwuuuaaawwwvvvoooaaaooodddeeedddooocdnnn
<57057 bytes omitted>
用户输出
0
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
157148
kaaadddooooookkkyyyiiinnnfffiiiqqqiiinnneeewwwwwwgggunnnwwwuuuaaawwwvvvoooaaaooodddeeedddooo
<157058 bytes omitted>
用户输出
0
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
157148
kaaadddooooookkkyyyiiinnnfffiiiqqqiiinnneeewwwwwwgggunnnwwwuuuaaawwwvvvoooaaaooodddeeedddooo
<157058 bytes omitted>
用户输出
0
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
157148
kaaadddooooookkkyyyiiinnnfffiiiqqqiiinnneeewwwwwwgggunnnwwwuuuaaawwwvvvoooaaaooodddeeedddooo
<157058 bytes omitted>
用户输出
0
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
157148
kaaadddooooookkkyyyiiinnnfffiiiqqqiiinnneeewwwwwwgggunnnwwwuuuaaawwwvvvoooaaaooodddeeedddooo
<157058 bytes omitted>
用户输出
0
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
176381
aaaeeexxxbbbcccssskuuueeeoooyyysssyyyaaaeeeuuutttsssssseeeooozzziiipppaaaaaannnaaaaaadddgggt
<176291 bytes omitted>
用户输出
0
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
42229
cccuuuuuuuuuwwwaaawwwuuuzzzeeeccceeetttyyyoootttiiiwwwwwwaaasssatttuuugggmmmmmmmoaaagggdddiii
<42138 bytes omitted>
用户输出
1
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
134373
bbbyyymmmeeexxxcccmmmeeedddlllvvviiigggiiigggyyyqiiicccaaavvvcccqqqhhhsssnnnpppmaaauqqqaggga
<134283 bytes omitted>
用户输出
0
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
110611
cccnnnyyycccnnnoookkkcccgggmmmaaaammmqqqiiiwwwkkkzzzlllqqqiiicccoooeeesssqqqzzznnnqqqcccaaam
<110521 bytes omitted>
用户输出
0
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
112771
eeeqqqjiiizzzffffaaaaqqqcccoooaaawwwdddnnnmxxxcccbbbzzzyyyeeeemmmnnnmmmpppkkkaaabbbeeeeeeooo
<112681 bytes omitted>
用户输出
0
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
145489
ooodddxtnnnxxxwwwyyyyyyiiimmmccciiiaaauuuvvviiikkkwwwkkkaaammmqqqpppuuugggaaarrruuuiiieeemmm
<145399 bytes omitted>
用户输出
0
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
113601
xxxqqqjjjaaammmsssuuugggaaaiiiyyyaaagggoooaaaqqqhhhmmmiiimmmaaaiiiaaammmjjjvvvaaayyytttsssaa
<113511 bytes omitted>
用户输出
0
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
4322
cccsssnnnrrriiivvvtttxxxuuukkkawwwkkkeeewwwyyygggaaaiiiuuuaaawwwccccccyyyaaagggmmmqqqwwwbbbxxx
<4230 bytes omitted>
用户输出
0
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
179926
aaabbbkkkqqqjjjeeeoooaaaqqqggguuuoooyyyeeebbbooouuumaaazzzwwwuuuaaaisssccccccaaacccmmmeeeaaa
<179836 bytes omitted>
用户输出
0
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
55461
rrrfffnnnmmmddddddwwweeemmmppppppqqqbbbkkkzzzaaavvvqqqiiiiiiiiigggaaannnooonnnrrrooogggdddmmm
<55370 bytes omitted>
用户输出
0
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
88073
ccceqqqqqquuuyyyyyybgggmmmssssssqqqccccccmmmeeennnooosssgggkkkgggaaawwwpppwwweeesssaaazzzsssn
<87982 bytes omitted>
用户输出
0
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
112713
cccmmmygggaggglllkkkqmmmhhhiiiiiitttzzzsssbgggyyyoooeeeyyygggooooooqqqcccyyyssseeemmmfffyyyu
<112623 bytes omitted>
用户输出
0
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
115313
rrrkkkiiiccckkkaaagggxxxyeeeccciiirrroooyyyuuuaaasssrrrzzzuuuaaawwwcccuuufffaaammmyyyuuuyyyp
<115223 bytes omitted>
用户输出
0
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0