結果
| 問題 |
No.975 ミスターマックスバリュ
|
| ユーザー |
|
| 提出日時 | 2020-06-16 01:33:03 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 99 ms / 2,000 ms |
| コード長 | 211 bytes |
| コンパイル時間 | 104 ms |
| コンパイル使用メモリ | 7,424 KB |
| 実行使用メモリ | 14,976 KB |
| 最終ジャッジ日時 | 2024-07-03 11:43:59 |
| 合計ジャッジ時間 | 1,621 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 9 |
コンパイルメッセージ
Main.rb:11: warning: ambiguous first argument; put parentheses or a space even after `-' operator Main.rb:12: warning: mismatched indentations at 'end' with 'case' at 3 Main.rb:1: warning: assigned but unused variable - y Syntax OK
ソースコード
x,*y = gets.split.map(&:to_i)
a,b = 2.times.map{gets.split.map(&:to_i).include? x}
case
when a && b
puts 'MrMaxValu'
when a
puts 'MrMax'
when b
puts 'MaxValu'
else
puts -1
end