結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
23,400 KB
testcase_01 AC 29 ms
24,228 KB
testcase_02 AC 61 ms
23,652 KB
testcase_03 AC 42 ms
23,916 KB
testcase_04 AC 33 ms
24,300 KB
testcase_05 AC 64 ms
24,348 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