結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 110 ms
31,440 KB
testcase_01 AC 105 ms
31,264 KB
testcase_02 WA -
testcase_03 AC 107 ms
31,000 KB
testcase_04 AC 111 ms
31,292 KB
testcase_05 AC 106 ms
31,160 KB
testcase_06 AC 102 ms
31,128 KB
testcase_07 WA -
testcase_08 AC 103 ms
30,908 KB
testcase_09 AC 107 ms
31,104 KB
testcase_10 AC 104 ms
31,048 KB
testcase_11 AC 106 ms
30,952 KB
testcase_12 AC 105 ms
30,756 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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