結果

問題 No.975 ミスターマックスバリュ
ユーザー mai
提出日時 2020-01-31 22:02:23
言語 Ruby
(3.4.1)
結果
AC  
実行時間 116 ms / 2,000 ms
コード長 159 bytes
コンパイル時間 41 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 15,232 KB
最終ジャッジ日時 2024-09-17 08:12:32
合計ジャッジ時間 1,722 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:2: warning: assigned but unused variable - n
Main.rb:2: warning: assigned but unused variable - m
Syntax OK

ソースコード

diff #

def lscan; gets.split.map(&:to_i); end
x,n,m = lscan
e = lscan.include? x
f = lscan.include? x
puts (e && f) ? 'MrMaxValu' : e ? 'MrMax' : f ? 'MaxValu' : '-1'
0