結果
問題 |
No.341 沈黙の期間
|
ユーザー |
![]() |
提出日時 | 2016-06-14 23:37:53 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 233 bytes |
コンパイル時間 | 370 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-10-09 13:50:49 |
合計ジャッジ時間 | 1,197 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 9 WA * 2 |
ソースコード
s = ('a'+input()+'a').split('…') result, sigh = 0, False for i in s: if i == '': if sigh == True:sub = sub + 1 if sigh == False:sub, sigh = 1, True else: if sigh == True:result, sigh = max(result,sub), False print(result+1)