結果

問題 No.304 鍵(1)
ユーザー piconic_Xpiconic_X
提出日時 2015-11-28 00:18:41
言語 OCaml
(5.1.0)
結果
AC  
実行時間 64 ms / 2,000 ms
コード長 244 bytes
コンパイル時間 1,492 ms
コンパイル使用メモリ 19,168 KB
実行使用メモリ 24,012 KB
平均クエリ数 309.17
最終ジャッジ日時 2023-09-23 22:07:04
合計ジャッジ時間 2,408 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
23,532 KB
testcase_01 AC 29 ms
23,544 KB
testcase_02 AC 64 ms
23,544 KB
testcase_03 AC 30 ms
24,012 KB
testcase_04 AC 46 ms
23,544 KB
testcase_05 AC 29 ms
23,532 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

let rec output i =
  if i > 999 then output 0 else
    let judge = read_line () in
    if judge = "locked" then (Printf.printf "%03d" i; print_newline (); output (i+1))
    else exit 0

let () = Printf.printf "000"; print_newline ();
	 output 1
0