結果
| 問題 |
No.975 ミスターマックスバリュ
|
| ユーザー |
horiesiniti
|
| 提出日時 | 2022-12-28 10:01:00 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 104 ms / 2,000 ms |
| コード長 | 165 bytes |
| コンパイル時間 | 243 ms |
| コンパイル使用メモリ | 7,680 KB |
| 実行使用メモリ | 14,976 KB |
| 最終ジャッジ日時 | 2024-11-23 01:30:48 |
| 合計ジャッジ時間 | 2,154 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 9 |
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - dp Main.rb:2: warning: assigned but unused variable - b Main.rb:2: warning: assigned but unused variable - c Syntax OK
ソースコード
dp={}
a,b,c=gets.split(" ")
d=(gets.chomp.split(" ").index(a)==nil)?(0):1
d+=(gets.chomp.split(" ").index(a)==nil)?(0):2
puts ["-1","MrMax","MaxValu","MrMaxValu"][d]
horiesiniti