結果
問題 | No.975 ミスターマックスバリュ |
ユーザー |
![]() |
提出日時 | 2020-02-04 22:06:41 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 49 ms / 2,000 ms |
コード長 | 819 bytes |
コンパイル時間 | 76 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 15,996 KB |
最終ジャッジ日時 | 2024-09-21 07:46:05 |
合計ジャッジ時間 | 940 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 9 |
ソースコード
#import pysnooper #import numpy #import os,re,sys,operator #from collections import Counter,deque #from operator import itemgetter,mul #from itertools import accumulate,combinations,groupby,combinations_with_replacement,permutations from sys import stdin,setrecursionlimit #from bisect import bisect_left,bisect_right #from copy import deepcopy #import heapq #import math #import string #from time import time #from functools import lru_cache,reduce #from math import factorial,hypot #import sys #from fractions import gcd setrecursionlimit(10**6) input=stdin.readline x,n,m=map(int,input().split()) a=[int(i) for i in input().split()] b=[int(i) for i in input().split()] ans1,ans2=x in a,x in b if ans1 and ans2: print("MrMaxValu") elif ans1: print("MrMax") elif ans2: print("MaxValu") else: print(-1)