結果
| 問題 |
No.975 ミスターマックスバリュ
|
| ユーザー |
lam6er
|
| 提出日時 | 2025-03-20 20:16:21 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 53 ms / 2,000 ms |
| コード長 | 479 bytes |
| コンパイル時間 | 167 ms |
| コンパイル使用メモリ | 82,284 KB |
| 実行使用メモリ | 76,044 KB |
| 最終ジャッジ日時 | 2025-03-20 20:16:53 |
| 合計ジャッジ時間 | 1,074 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 9 |
ソースコード
# Read the first line input
X, N, M = map(int, input().split())
# Read the list for MrMax and convert to a set
A = set(map(int, input().split()))
# Read the list for MaxValu and convert to a set
B = set(map(int, input().split()))
# Check presence in each set
in_mr_max = X in A
in_max_val = X in B
# Determine and print the result
if in_mr_max and in_max_val:
print("MrMaxValu")
elif in_mr_max:
print("MrMax")
elif in_max_val:
print("MaxValu")
else:
print(-1)
lam6er