結果

問題 No.975 ミスターマックスバリュ
ユーザー splash9494splash9494
提出日時 2020-05-05 19:03:25
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 317 bytes
コンパイル時間 378 ms
コンパイル使用メモリ 87,044 KB
実行使用メモリ 80,948 KB
最終ジャッジ日時 2023-09-09 07:38:55
合計ジャッジ時間 1,987 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,112 KB
testcase_01 AC 75 ms
71,196 KB
testcase_02 AC 78 ms
71,268 KB
testcase_03 AC 75 ms
71,268 KB
testcase_04 AC 75 ms
71,200 KB
testcase_05 AC 73 ms
71,492 KB
testcase_06 AC 74 ms
71,404 KB
testcase_07 AC 78 ms
75,684 KB
testcase_08 AC 84 ms
80,948 KB
testcase_09 AC 75 ms
71,344 KB
testcase_10 AC 74 ms
71,392 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.buffer.readline

X, N, M = map(int, input().split())
As = list(map(int, input().split()))
Bs = list(map(int, input().split()))

mrmax = X in As
maxvalu = X in Bs

if not mrmax and not maxvalu:
    print('-1')
else:
    print(('Mr' if mrmax else '') + 'Max' + ('Valu' if maxvalu else ''))
0