結果

問題 No.975 ミスターマックスバリュ
ユーザー stngstng
提出日時 2022-08-16 20:43:38
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 52 ms / 2,000 ms
コード長 384 bytes
コンパイル時間 240 ms
コンパイル使用メモリ 82,484 KB
実行使用メモリ 69,756 KB
最終ジャッジ日時 2024-04-14 14:31:28
合計ジャッジ時間 1,631 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
52,800 KB
testcase_01 AC 37 ms
52,616 KB
testcase_02 AC 38 ms
52,944 KB
testcase_03 AC 37 ms
52,768 KB
testcase_04 AC 38 ms
52,544 KB
testcase_05 AC 38 ms
52,424 KB
testcase_06 AC 38 ms
53,240 KB
testcase_07 AC 37 ms
53,312 KB
testcase_08 AC 52 ms
69,756 KB
testcase_09 AC 37 ms
52,868 KB
testcase_10 AC 38 ms
53,696 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

x,n,m = map(int,input().split())
a = [int(i) for i in input().split()]
b = [int(i) for i in input().split()]

mr = 0

for i in range(n):
    if a[i] == x:
        mr = 1
        break

vl = 0
for i in range(m):
    if b[i] == x:
        vl = 1
        break

if mr+vl == 2:
    print("MrMaxValu")
elif mr == 1:
    print("MrMax")
elif vl == 1:
    print("MaxValu")
else:
    print(-1)
0