結果
問題 |
No.975 ミスターマックスバリュ
|
ユーザー |
|
提出日時 | 2020-02-09 16:25:13 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 93 ms / 2,000 ms |
コード長 | 197 bytes |
コンパイル時間 | 130 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 14,976 KB |
最終ジャッジ日時 | 2024-10-01 06:03:12 |
合計ジャッジ時間 | 1,719 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 9 |
コンパイルメッセージ
Main.rb:14: warning: ambiguous first argument; put parentheses or a space even after `-' operator Syntax OK
ソースコード
x=gets.to_i y=gets.split.map(&:to_i) z=gets.split.map(&:to_i) if y.include? x if z.include? x puts :MrMaxValu else puts :MrMax end else if z.include? x puts :MaxValu else p -1 end end