結果

問題 No.24 数当てゲーム
ユーザー char134217728char134217728
提出日時 2017-08-24 22:44:52
言語 Ruby
(3.2.2)
結果
AC  
実行時間 81 ms / 5,000 ms
コード長 152 bytes
コンパイル時間 248 ms
コンパイル使用メモリ 11,272 KB
実行使用メモリ 15,312 KB
最終ジャッジ日時 2023-08-05 17:19:30
合計ジャッジ時間 2,026 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
15,048 KB
testcase_01 AC 81 ms
15,304 KB
testcase_02 AC 78 ms
15,112 KB
testcase_03 AC 76 ms
15,272 KB
testcase_04 AC 75 ms
15,288 KB
testcase_05 AC 74 ms
15,148 KB
testcase_06 AC 75 ms
15,252 KB
testcase_07 AC 76 ms
15,224 KB
testcase_08 AC 77 ms
15,312 KB
testcase_09 AC 75 ms
15,052 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a = [*0..9]
gets.to_i.times do
  l = gets.split(" ")
  _l = l[0..-2].map(&:to_i)
  if(l[-1] == "YES")
    a &= _l
  else
    a -= _l
  end
end
puts a[0]
0