結果

問題 No.305 鍵(2)
ユーザー char134217728char134217728
提出日時 2017-09-09 23:16:15
言語 Ruby
(3.3.0)
結果
AC  
実行時間 100 ms / 2,000 ms
コード長 235 bytes
コンパイル時間 69 ms
コンパイル使用メモリ 11,436 KB
実行使用メモリ 31,552 KB
平均クエリ数 52.15
最終ジャッジ日時 2023-09-24 01:32:39
合計ジャッジ時間 2,371 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 100 ms
30,976 KB
testcase_01 AC 95 ms
31,264 KB
testcase_02 AC 89 ms
30,776 KB
testcase_03 AC 90 ms
30,752 KB
testcase_04 AC 91 ms
30,808 KB
testcase_05 AC 89 ms
31,184 KB
testcase_06 AC 89 ms
31,420 KB
testcase_07 AC 90 ms
30,700 KB
testcase_08 AC 90 ms
30,912 KB
testcase_09 AC 93 ms
30,808 KB
testcase_10 AC 93 ms
30,872 KB
testcase_11 AC 94 ms
31,064 KB
testcase_12 AC 97 ms
31,552 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

@a = [9]*10
def get
  puts @a.join
  STDOUT.flush
  n, state = gets.chomp.split(" ")
  exit if state == "unlocked"
  n.to_i
end
10.times do |i|
  n = get()
  (0..9).each do |j|
    @a[i] = j
    _n = get()
    break if _n > n
  end
end
0