結果
| 問題 |
No.341 沈黙の期間
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-02-12 22:45:58 |
| 言語 | Python2 (2.7.18) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 416 bytes |
| コンパイル時間 | 57 ms |
| コンパイル使用メモリ | 6,912 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-22 04:45:27 |
| 合計ジャッジ時間 | 769 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | WA * 1 RE * 10 |
ソースコード
#!/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):
print s, s[idx]
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())