結果
| 問題 | No.341 沈黙の期間 |
| コンテスト | |
| ユーザー |
toshiro_yanagi
|
| 提出日時 | 2018-06-13 03:54:38 |
| 言語 | Nim (2.2.10) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| + 300µs | |
| コード長 | 186 bytes |
| 記録 | |
| コンパイル時間 | 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 |
ソースコード
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
toshiro_yanagi