結果

問題 No.975 ミスターマックスバリュ
ユーザー takakintakakin
提出日時 2020-04-13 21:58:37
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 61 ms / 2,000 ms
コード長 299 bytes
コンパイル時間 100 ms
コンパイル使用メモリ 11,968 KB
実行使用メモリ 17,832 KB
最終ジャッジ日時 2023-10-26 02:30:55
合計ジャッジ時間 1,328 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
10,060 KB
testcase_01 AC 28 ms
10,060 KB
testcase_02 AC 28 ms
10,064 KB
testcase_03 AC 28 ms
10,060 KB
testcase_04 AC 28 ms
10,068 KB
testcase_05 AC 28 ms
10,196 KB
testcase_06 AC 29 ms
10,216 KB
testcase_07 AC 29 ms
10,288 KB
testcase_08 AC 61 ms
17,832 KB
testcase_09 AC 30 ms
10,060 KB
testcase_10 AC 29 ms
10,060 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=lambda: sys.stdin.readline().rstrip()
x,n,m=map(int,input().split())
A=[int(i) for i in input().split()]
B=[int(i) for i in input().split()]
A=set(A)
B=set(B)
if x in A:
  if x in B:
    print("MrMaxValu")
  else:
    print("MrMax")
elif x in B:
  print("MaxValu")
else:
  print(-1)
0