結果

問題 No.304 鍵(1)
ユーザー むらためむらため
提出日時 2018-12-18 12:11:39
言語 Nim
(2.0.2)
結果
AC  
実行時間 65 ms / 2,000 ms
コード長 199 bytes
コンパイル時間 3,215 ms
コンパイル使用メモリ 69,600 KB
実行使用メモリ 24,384 KB
平均クエリ数 472.67
最終ジャッジ日時 2023-09-24 02:03:45
合計ジャッジ時間 4,164 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
24,312 KB
testcase_01 AC 27 ms
24,024 KB
testcase_02 AC 54 ms
23,352 KB
testcase_03 AC 44 ms
24,384 KB
testcase_04 AC 32 ms
24,336 KB
testcase_05 AC 65 ms
24,036 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import strformat,strutils,random

var used = newSeq[bool](1000)
while true:
  var i = 0
  while used[i]: i = rand(999)
  used[i] = true
  echo fmt"{i:03d}"
  if stdin.readLine() == "unlocked": break
0