結果

問題 No.975 ミスターマックスバリュ
ユーザー lam6er
提出日時 2025-03-20 18:40:00
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 55 ms / 2,000 ms
コード長 479 bytes
コンパイル時間 148 ms
コンパイル使用メモリ 82,364 KB
実行使用メモリ 76,852 KB
最終ジャッジ日時 2025-03-20 18:40:05
合計ジャッジ時間 1,203 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

# Read the first line input
X, N, M = map(int, input().split())

# Read the list for MrMax and convert to a set
A = set(map(int, input().split()))

# Read the list for MaxValu and convert to a set
B = set(map(int, input().split()))

# Check presence in each set
in_mr_max = X in A
in_max_val = X in B

# Determine and print the result
if in_mr_max and in_max_val:
    print("MrMaxValu")
elif in_mr_max:
    print("MrMax")
elif in_max_val:
    print("MaxValu")
else:
    print(-1)
0