結果

問題 No.24 数当てゲーム
ユーザー Takeky0Takeky0
提出日時 2021-05-02 14:02:04
言語 Crystal
(1.11.2)
結果
AC  
実行時間 3 ms / 5,000 ms
コード長 231 bytes
コンパイル時間 21,172 ms
コンパイル使用メモリ 253,740 KB
実行使用メモリ 4,556 KB
最終ジャッジ日時 2023-09-28 04:18:16
合計ジャッジ時間 20,189 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,448 KB
testcase_01 AC 2 ms
4,444 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 AC 2 ms
4,376 KB
testcase_04 AC 2 ms
4,456 KB
testcase_05 AC 2 ms
4,444 KB
testcase_06 AC 2 ms
4,392 KB
testcase_07 AC 3 ms
4,556 KB
testcase_08 AC 2 ms
4,444 KB
testcase_09 AC 2 ms
4,528 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=read_line.to_i
yes=(0..9).map{|i|i}
no=[] of Int32
n.times{
    a,b,c,d,r=read_line.split
    p=[a,b,c,d].map(&.to_i)
    if r=="YES"
        yes=yes&p
    else
        no=no+p
    end
}
yes.each{|i|puts i unless no.includes?(i)}
0