結果

問題 No.975 ミスターマックスバリュ
ユーザー kcz146kcz146
提出日時 2020-06-16 01:33:03
言語 Ruby
(3.3.0)
結果
AC  
実行時間 99 ms / 2,000 ms
コード長 211 bytes
コンパイル時間 36 ms
コンパイル使用メモリ 11,440 KB
実行使用メモリ 18,288 KB
最終ジャッジ日時 2023-09-16 10:47:05
合計ジャッジ時間 1,586 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,220 KB
testcase_01 AC 76 ms
15,104 KB
testcase_02 AC 76 ms
15,264 KB
testcase_03 AC 76 ms
15,140 KB
testcase_04 AC 77 ms
15,136 KB
testcase_05 AC 76 ms
15,256 KB
testcase_06 AC 82 ms
15,292 KB
testcase_07 AC 78 ms
15,232 KB
testcase_08 AC 99 ms
18,288 KB
testcase_09 AC 76 ms
15,084 KB
testcase_10 AC 76 ms
15,228 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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

ソースコード

diff #

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
0