結果

問題 No.341 沈黙の期間
ユーザー HachimoriHachimori
提出日時 2016-02-12 22:46:25
言語 Python2
(2.7.18)
結果
AC  
実行時間 12 ms / 5,000 ms
コード長 392 bytes
コンパイル時間 540 ms
コンパイル使用メモリ 7,124 KB
実行使用メモリ 6,424 KB
最終ジャッジ日時 2023-10-22 03:17:29
合計ジャッジ時間 963 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

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

ソースコード

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):
        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