結果

問題 No.975 ミスターマックスバリュ
ユーザー tamatotamato
提出日時 2020-01-31 21:22:33
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 51 ms / 2,000 ms
コード長 454 bytes
コンパイル時間 170 ms
コンパイル使用メモリ 81,704 KB
実行使用メモリ 70,968 KB
最終ジャッジ日時 2023-10-17 08:32:07
合計ジャッジ時間 1,272 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,484 KB
testcase_01 AC 36 ms
53,484 KB
testcase_02 AC 36 ms
53,484 KB
testcase_03 AC 38 ms
53,484 KB
testcase_04 AC 37 ms
53,484 KB
testcase_05 AC 36 ms
53,484 KB
testcase_06 AC 37 ms
53,484 KB
testcase_07 AC 40 ms
59,476 KB
testcase_08 AC 51 ms
70,968 KB
testcase_09 AC 39 ms
53,484 KB
testcase_10 AC 38 ms
53,484 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    import sys
    input = sys.stdin.readline

    X, N, M = map(int, input().split())
    A = list(map(int, input().split()))
    B = list(map(int, input().split()))

    flg = 0
    if X in A:
        flg += 1
    if X in B:
        flg += 2
    if flg == 0:
        print(-1)
    elif flg == 1:
        print('MrMax')
    elif flg == 2:
        print('MaxValu')
    else:
        print('MrMaxValu')


if __name__ == '__main__':
    main()
0