結果

問題 No.341 沈黙の期間
ユーザー HachimoriHachimori
提出日時 2016-02-12 22:45:58
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 416 bytes
コンパイル時間 581 ms
コンパイル使用メモリ 7,112 KB
実行使用メモリ 6,428 KB
最終ジャッジ日時 2023-10-22 03:17:14
合計ジャッジ時間 850 ms
ジャッジサーバーID
(参考情報)
judge10 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/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())
0