結果
| 問題 | No.341 沈黙の期間 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-02-12 22:46:25 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 108 ms / 5,000 ms |
| コード長 | 392 bytes |
| 記録 | |
| コンパイル時間 | 146 ms |
| コンパイル使用メモリ | 76,768 KB |
| 最終ジャッジ日時 | 2025-12-03 19:18:45 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 |
ソースコード
#!/usr/bin/env python
#coding:utf8
def read():
return raw_input().decode('utf-8')
def work(s):
ans = 0
idx = 0
while idx < len(s):
cnt = 0
while idx < len(s) and s[idx] == '…'.decode('utf-8'):
idx += 1
cnt += 1
ans = max(ans, cnt)
idx += 1
print ans
if __name__ == "__main__":
work(read())