結果

問題 No.304 鍵(1)
ユーザー 👑 yumechiyumechi
提出日時 2015-11-27 22:40:31
言語 Ruby
(3.2.2)
結果
AC  
実行時間 155 ms / 2,000 ms
コード長 176 bytes
コンパイル時間 63 ms
コンパイル使用メモリ 11,476 KB
実行使用メモリ 31,368 KB
平均クエリ数 309.17
最終ジャッジ日時 2023-09-23 21:59:25
合計ジャッジ時間 1,655 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 112 ms
30,888 KB
testcase_01 AC 112 ms
30,992 KB
testcase_02 AC 155 ms
30,948 KB
testcase_03 AC 113 ms
31,368 KB
testcase_04 AC 130 ms
31,024 KB
testcase_05 AC 114 ms
30,836 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

res = ""
cnt = 0
while res != "unlocked" do
    key = format("%03d", cnt)
    puts key
    STDOUT.flush
    res = gets.chomp
    if res == "locked"
        cnt += 1
    end
end
0