結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 108 ms
31,096 KB
testcase_02 WA -
testcase_03 AC 110 ms
31,204 KB
testcase_04 AC 112 ms
31,068 KB
testcase_05 AC 109 ms
31,508 KB
testcase_06 AC 105 ms
31,400 KB
testcase_07 WA -
testcase_08 AC 110 ms
31,324 KB
testcase_09 AC 112 ms
31,016 KB
testcase_10 AC 106 ms
31,176 KB
testcase_11 AC 108 ms
30,720 KB
testcase_12 AC 109 ms
30,728 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

s = '0000000000'
tmp = 0
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
            break
        end
        }
    }
0