結果

問題 No.1643 Not Substring
ユーザー mahiro72
提出日時 2021-10-04 22:27:55
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 142 bytes
コンパイル時間 86 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-07-22 23:04:37
合計ジャッジ時間 1,838 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9 WA * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()

a_cnt,tmp=0,0

for s in S:
    if s=='a':tmp+=1
    else:a_cnt=max(a_cnt,tmp);tmp =0

a_cnt = max(a_cnt,tmp)
print('a'*(a_cnt+1))
0