結果

問題 No.341 沈黙の期間
ユーザー mesame3993mesame3993
提出日時 2021-11-18 15:06:48
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 71 ms / 5,000 ms
コード長 256 bytes
コンパイル時間 276 ms
コンパイル使用メモリ 87,176 KB
実行使用メモリ 71,592 KB
最終ジャッジ日時 2023-08-27 01:02:17
合計ジャッジ時間 2,225 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
71,432 KB
testcase_01 AC 66 ms
71,552 KB
testcase_02 AC 67 ms
71,448 KB
testcase_03 AC 67 ms
71,184 KB
testcase_04 AC 71 ms
71,048 KB
testcase_05 AC 68 ms
71,416 KB
testcase_06 AC 69 ms
71,364 KB
testcase_07 AC 66 ms
71,500 KB
testcase_08 AC 63 ms
71,292 KB
testcase_09 AC 67 ms
71,264 KB
testcase_10 AC 68 ms
71,292 KB
testcase_11 AC 66 ms
71,592 KB
testcase_12 AC 67 ms
71,284 KB
testcase_13 AC 67 ms
71,044 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
  from sys import stdin
  readline=stdin.readline
  s = input()
  t = '…'
  ans, cnt = 0, 0
  for i in range(len(s)):
    if s[i] == t:
      cnt += 1
    else:
      ans = max(ans, cnt)
      cnt = 0
  ans = max(ans, cnt)
  print(ans)
main()
0