結果
| 問題 | No.975 ミスターマックスバリュ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-08-15 20:56:55 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 101 ms / 2,000 ms |
| コード長 | 267 bytes |
| 記録 | |
| コンパイル時間 | 315 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 19,388 KB |
| 最終ジャッジ日時 | 2026-04-24 12:50:27 |
| 合計ジャッジ時間 | 2,348 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 9 |
ソースコード
x,n,m=map(int,input().split())
a_l=list(map(int,input().split()))
b_l=list(map(int,input().split()))
ans=-1
for i in a_l:
if i==x:ans+=3
for j in b_l:
if j==x:ans+=5
print("MrMax" if ans==3-1 else "MaxValu" if ans==5-1 else "MrMaxValu" if ans==8-1 else -1)