結果

問題 No.975 ミスターマックスバリュ
ユーザー SyMV8aPaGGCs8YySyMV8aPaGGCs8Yy
提出日時 2020-02-06 20:12:23
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 52 ms / 2,000 ms
コード長 413 bytes
コンパイル時間 319 ms
コンパイル使用メモリ 11,872 KB
実行使用メモリ 16,296 KB
最終ジャッジ日時 2023-10-25 22:39:12
合計ジャッジ時間 1,106 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,044 KB
testcase_01 AC 28 ms
10,044 KB
testcase_02 AC 27 ms
10,048 KB
testcase_03 AC 27 ms
10,048 KB
testcase_04 AC 26 ms
10,052 KB
testcase_05 AC 27 ms
10,116 KB
testcase_06 AC 27 ms
10,124 KB
testcase_07 AC 27 ms
10,212 KB
testcase_08 AC 52 ms
16,296 KB
testcase_09 AC 27 ms
10,044 KB
testcase_10 AC 27 ms
10,044 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

one=[int(i) for i in input().split()]
two=[int(i) for i in input().split()]
ther=[int(i) for i in input().split()]

fg1=0
fg2=0

for i in range(one[1]):
    if one[0]==two[i]:
        fg1=1

for i in range(one[2]):
    if one[0]==ther[i]:
        fg2=1
    
if fg1==0 and fg2==0:
    print("-1")
elif fg1==1 and fg2==0:
    print("MrMax")
elif fg1==0 and fg2==1:
    print("MaxValu")
else:
    print("MrMaxValu")
0