結果

問題 No.341 沈黙の期間
ユーザー ut0sut0s
提出日時 2019-10-04 22:31:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 37 ms / 5,000 ms
コード長 151 bytes
コンパイル時間 532 ms
コンパイル使用メモリ 82,296 KB
実行使用メモリ 53,336 KB
最終ジャッジ日時 2024-04-14 11:10:53
合計ジャッジ時間 1,944 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
52,500 KB
testcase_01 AC 35 ms
52,020 KB
testcase_02 AC 35 ms
52,072 KB
testcase_03 AC 36 ms
53,100 KB
testcase_04 AC 35 ms
51,956 KB
testcase_05 AC 35 ms
52,328 KB
testcase_06 AC 36 ms
52,420 KB
testcase_07 AC 35 ms
52,204 KB
testcase_08 AC 35 ms
52,384 KB
testcase_09 AC 35 ms
53,336 KB
testcase_10 AC 36 ms
52,084 KB
testcase_11 AC 36 ms
52,204 KB
testcase_12 AC 35 ms
51,924 KB
testcase_13 AC 37 ms
53,152 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3

S = input()

cnt = 0
ans = 0
for s in S:
  if s == "…":
    cnt += 1
    ans = max(ans, cnt)
  else:
    cnt = 0

print(ans)
0