結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
24,312 KB
testcase_01 AC 30 ms
23,988 KB
testcase_02 AC 61 ms
23,352 KB
testcase_03 AC 45 ms
24,084 KB
testcase_04 AC 36 ms
24,072 KB
testcase_05 AC 63 ms
23,400 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