結果

問題 No.975 ミスターマックスバリュ
ユーザー zer0
提出日時 2020-03-29 23:17:37
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 44 ms / 2,000 ms
コード長 313 bytes
コンパイル時間 374 ms
コンパイル使用メモリ 12,288 KB
実行使用メモリ 15,912 KB
最終ジャッジ日時 2025-01-02 15:55:34
合計ジャッジ時間 1,200 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

X, N, M = map(int, input().split())
a = list(map(int, input().split()))
b = list(map(int, input().split()))

cnt = [0, 0]
cnt[0] = a.count(X)
cnt[1] = b.count(X)

if cnt[0] == 1 and cnt[1] == 1:
    print('MrMaxValu')
elif cnt[0] == 1:
    print('MrMax')
elif cnt[1] == 1:
    print('MaxValu')
else:
    print(-1)
0