結果

問題 No.304 鍵(1)
ユーザー 👑 yumechiyumechi
提出日時 2015-11-27 22:38:38
言語 Ruby
(3.3.0)
結果
RE  
実行時間 -
コード長 176 bytes
コンパイル時間 56 ms
コンパイル使用メモリ 11,244 KB
実行使用メモリ 31,468 KB
平均クエリ数 0.33
最終ジャッジ日時 2023-09-23 06:41:52
合計ジャッジ時間 4,896 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 TLE -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:7: warning: assigned but unused variable - ret
Syntax OK

ソースコード

diff #

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