結果

問題 No.305 鍵(2)
ユーザー finefine
提出日時 2016-03-09 02:04:26
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 220 bytes
コンパイル時間 75 ms
コンパイル使用メモリ 11,552 KB
実行使用メモリ 31,668 KB
平均クエリ数 84.85
最終ジャッジ日時 2023-09-23 09:05:01
合計ジャッジ時間 3,894 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 108 ms
30,964 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 108 ms
31,320 KB
testcase_06 AC 108 ms
31,388 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:7: warning: assigned but unused variable - x
Syntax OK

ソースコード

diff #

s = '0000000000'
10.times{|k|
    0.upto(9){|i|
        s[9 - k] = i.to_s
        puts s
        STDOUT.flush
        x,judge = gets.chomp.split
        if judge == 'unlocked'
            exit
        end
        }
    }
0