結果
問題 | No.24 数当てゲーム |
ユーザー | tanukidon |
提出日時 | 2018-04-06 06:27:53 |
言語 | Ruby (3.3.0) |
結果 |
AC
|
実行時間 | 81 ms / 5,000 ms |
コード長 | 153 bytes |
コンパイル時間 | 201 ms |
コンパイル使用メモリ | 11,388 KB |
実行使用メモリ | 15,328 KB |
最終ジャッジ日時 | 2023-09-08 17:57:33 |
合計ジャッジ時間 | 1,909 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 80 ms
15,164 KB |
testcase_01 | AC | 79 ms
15,156 KB |
testcase_02 | AC | 81 ms
15,184 KB |
testcase_03 | AC | 79 ms
15,044 KB |
testcase_04 | AC | 80 ms
15,328 KB |
testcase_05 | AC | 79 ms
15,184 KB |
testcase_06 | AC | 76 ms
15,276 KB |
testcase_07 | AC | 78 ms
15,136 KB |
testcase_08 | AC | 78 ms
15,180 KB |
testcase_09 | AC | 79 ms
15,084 KB |
コンパイルメッセージ
Main.rb:8: warning: possibly useless use of a variable in void context Syntax OK
ソースコード
n = gets.to_i a = [] b = [*"0".."9"] n.times do |i| a << gets.chomp.split if a[i][4] == "NO" a[i].pop a b -= a[i] else a[i].pop b = a[i]&b end end puts b