結果

問題 No.341 沈黙の期間
ユーザー toshiro_yanagi
提出日時 2018-06-13 03:54:38
言語 Nim
(2.2.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 186 bytes
コンパイル時間 2,835 ms
コンパイル使用メモリ 62,436 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-30 14:02:45
合計ジャッジ時間 3,376 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

import unicode

let S = stdin.readLine.toRunes
var i, cnt, best = 0

while i <= S.high:
  if $S[i] == "…":
    cnt += 1
  else:
    cnt = 0
  best = max(best, cnt)
  i += 1

echo best
0