結果
問題 | No.341 沈黙の期間 |
ユーザー |
![]() |
提出日時 | 2021-09-08 12:51:03 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 38 ms / 5,000 ms |
コード長 | 209 bytes |
コンパイル時間 | 1,198 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 51,968 KB |
最終ジャッジ日時 | 2024-12-25 18:41:28 |
合計ジャッジ時間 | 1,498 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
s = str(input())C = []cnt = 0for c in s:if c == '…':cnt += 1else:C.append(cnt)cnt = 0else:C.append(cnt)res = 0for cnt in C:res = max(res, cnt)print(res)