結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 29 ms
10,076 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 31 ms
10,240 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 29 ms
10,076 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

ans = "Mr"
if mrmax:ans += "Max"
if maxval:ans += "Valu"
print(ans)
0