結果

問題 No.975 ミスターマックスバリュ
ユーザー masumasumath1masumasumath1
提出日時 2020-01-31 21:28:11
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 311 bytes
コンパイル時間 264 ms
コンパイル使用メモリ 11,936 KB
実行使用メモリ 16,380 KB
最終ジャッジ日時 2023-10-17 08:43:03
合計ジャッジ時間 1,280 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

X,N,M = map(int,input().split())
A = list(map(int,input().split()))
B = list(map(int,input().split()))
mrmax = 0
maxval = 0
for a in A:
    if X == a:mrmax = 1
for b in B:
    if X == b:maxval = 1

if mrmax and not maxval:ans = "MrMax"
elif maxval and not mrmax:ans = "MaxValu"
else:ans = "MrMaxValu"
print(ans)
0