結果
| 問題 |
No.975 ミスターマックスバリュ
|
| ユーザー |
|
| 提出日時 | 2020-04-15 11:23:36 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 56 ms / 2,000 ms |
| コード長 | 515 bytes |
| コンパイル時間 | 355 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 18,076 KB |
| 最終ジャッジ日時 | 2024-10-01 18:41:27 |
| 合計ジャッジ時間 | 1,168 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 9 |
ソースコード
MOD = 10 ** 9 + 7
INF = 10 ** 10
import sys
sys.setrecursionlimit(100000000)
dy = (-1,0,1,0)
dx = (0,1,0,-1)
from collections import deque
def main():
x,n,m = map(int,input().split())
a = set(map(int,input().split()))
b = set(map(int,input().split()))
if x in a:
if x in b:
ans = 'MrMaxValu'
else:
ans = 'MrMax'
else:
if x in b:
ans = 'MaxValu'
else:
ans = -1
print(ans)
if __name__ =='__main__':
main()