結果

問題 No.975 ミスターマックスバリュ
ユーザー superzugan
提出日時 2021-08-15 20:56:55
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 57 ms / 2,000 ms
コード長 267 bytes
コンパイル時間 238 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 16,080 KB
最終ジャッジ日時 2024-10-08 05:26:36
合計ジャッジ時間 1,432 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

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)

0