結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
23,748 KB
testcase_01 AC 27 ms
23,484 KB
testcase_02 AC 55 ms
24,300 KB
testcase_03 AC 42 ms
23,508 KB
testcase_04 AC 33 ms
24,000 KB
testcase_05 AC 59 ms
24,012 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