結果

問題 No.341 沈黙の期間
コンテスト
ユーザー toshiro_yanagi
提出日時 2018-06-13 03:54:38
言語 Nim
(2.2.10)
コンパイル:
nim --nimcache=~ --hints:off -o:a.out -d:release cpp _filename_
実行:
./a.out
結果
AC  
実行時間 1 ms / 5,000 ms
+ 300µs
コード長 186 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 2,158 ms
コンパイル使用メモリ 69,268 KB
実行使用メモリ 5,888 KB
最終ジャッジ日時 2026-08-02 12:16:35
合計ジャッジ時間 3,166 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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