結果
問題 | No.341 沈黙の期間 |
ユーザー |
|
提出日時 | 2020-02-19 00:02:26 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 30 ms / 5,000 ms |
コード長 | 266 bytes |
コンパイル時間 | 245 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-10-06 15:56:32 |
合計ジャッジ時間 | 1,541 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
s = list(input())cnt = []for i in s:if i == "…":cnt.append("1")else:cnt.append("0")t3a = [0] * len(s)x = 0for i, j in enumerate(map(int, cnt)):if j == 1:x += 1else:x = 0t3a[i] = xprint(max(t3a))