結果

問題 No.975 ミスターマックスバリュ
ユーザー Takuya NoguchiTakuya Noguchi
提出日時 2020-11-10 20:56:08
言語 Ruby
(3.3.0)
結果
AC  
実行時間 86 ms / 2,000 ms
コード長 233 bytes
コンパイル時間 43 ms
コンパイル使用メモリ 11,556 KB
実行使用メモリ 18,348 KB
最終ジャッジ日時 2023-09-30 00:11:28
合計ジャッジ時間 1,628 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
15,036 KB
testcase_01 AC 66 ms
15,400 KB
testcase_02 AC 66 ms
15,120 KB
testcase_03 AC 68 ms
15,144 KB
testcase_04 AC 65 ms
15,296 KB
testcase_05 AC 64 ms
15,340 KB
testcase_06 AC 66 ms
15,164 KB
testcase_07 AC 68 ms
15,124 KB
testcase_08 AC 86 ms
18,348 KB
testcase_09 AC 67 ms
15,240 KB
testcase_10 AC 72 ms
15,088 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

X, _, _ = gets.split.map(&:to_i)
A = gets.split.map(&:to_i)
B = gets.split.map(&:to_i)

if A.include?(X) && B.include?(X)
  puts 'MrMaxValu'
elsif A.include?(X)
  puts 'MrMax'
elsif B.include?(X)
  puts 'MaxValu'
else
  puts '-1'
end
0