結果

問題 No.24 数当てゲーム
ユーザー apierceapierce
提出日時 2022-11-03 14:36:11
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 281 bytes
コンパイル時間 62 ms
コンパイル使用メモリ 11,588 KB
実行使用メモリ 15,356 KB
最終ジャッジ日時 2023-09-24 23:51:19
合計ジャッジ時間 1,795 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
15,152 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 80 ms
15,124 KB
testcase_05 AC 83 ms
15,152 KB
testcase_06 WA -
testcase_07 AC 80 ms
15,084 KB
testcase_08 WA -
testcase_09 AC 81 ms
15,124 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.to_i
result = Array.new(10, true)

n.times do |i|
    arr = gets.split
    a, b, c, d, s = arr
    if s == "NO"
        result[a.to_i] = false
        result[b.to_i] = false
        result[c.to_i] = false
        result[d.to_i] = false
    end
end
puts result.index{|x| x}
0