結果
問題 |
No.341 沈黙の期間
|
ユーザー |
![]() |
提出日時 | 2019-02-05 17:34:13 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 152 bytes |
コンパイル時間 | 337 ms |
コンパイル使用メモリ | 12,160 KB |
実行使用メモリ | 10,240 KB |
最終ジャッジ日時 | 2025-01-03 00:03:03 |
合計ジャッジ時間 | 1,682 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 10 WA * 1 |
ソースコード
s = input() res = 0 cnt = 0 for c in s: if c == '…': cnt += 1 elif cnt >= 1: res = max(cnt, res) cnt = 0 print(res)