結果
問題 | No.341 沈黙の期間 |
ユーザー |
|
提出日時 | 2017-01-02 16:20:09 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 28 ms / 5,000 ms |
コード長 | 228 bytes |
コンパイル時間 | 224 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-12-16 03:26:50 |
合計ジャッジ時間 | 1,247 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
# coding: utf-8 # yukicoder No.341 沈黙の期間 S = input() count = 0 tmp = 0 for i in S: if i == "…": tmp += 1 else: if tmp > count: count = tmp tmp = 0 print(max(count, tmp))