結果
| 問題 | No.975 ミスターマックスバリュ |
| コンテスト | |
| ユーザー |
wonda_t_coffee
|
| 提出日時 | 2020-01-31 21:23:12 |
| 言語 | Ruby (4.0.2) |
| 結果 |
AC
|
| 実行時間 | 68 ms / 2,000 ms |
| コード長 | 254 bytes |
| 記録 | |
| コンパイル時間 | 550 ms |
| コンパイル使用メモリ | 8,704 KB |
| 実行使用メモリ | 18,304 KB |
| 最終ジャッジ日時 | 2026-04-06 04:08:35 |
| 合計ジャッジ時間 | 2,167 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 9 |
コンパイルメッセージ
Main.rb:14: warning: ambiguous first argument; put parentheses or a space even after `-` operator Main.rb:1: warning: assigned but unused variable - m Main.rb:1: warning: assigned but unused variable - n Syntax OK
ソースコード
x, n, m = gets.chomp.split.map(&:to_i) a = gets.chomp.split.map(&:to_i) b = gets.chomp.split.map(&:to_i) f1 = a.include?(x) f2 = b.include?(x) if f1 & f2 puts 'MrMaxValu' elsif f1 & !f2 puts 'MrMax' elsif !f1 & f2 puts 'MaxValu' else puts -1 end
wonda_t_coffee