結果
| 問題 |
No.975 ミスターマックスバリュ
|
| ユーザー |
a01sa01to
|
| 提出日時 | 2023-06-30 00:24:52 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 37 ms / 2,000 ms |
| コード長 | 667 bytes |
| コンパイル時間 | 1,933 ms |
| コンパイル使用メモリ | 195,144 KB |
| 最終ジャッジ日時 | 2025-02-15 03:10:46 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 9 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
#include "settings/debug.cpp"
#define _GLIBCXX_DEBUG
#else
#define Debug(...) void(0)
#endif
using ll = long long;
#define rep(i, n) for (int i = 0; i < (n); ++i)
int main() {
int x,n,m;cin>>x>>n>>m;
vector<int>a(n), b(m);
rep(i,n) cin >> a[i];
rep(i,m) cin >> b[i];
bool ex1 = false, ex2 = false;
rep(i,n) if (a[i] == x) ex1 = true;
rep(i,m) if (b[i] == x) ex2 = true;
if (ex1 && ex2 ) {
cout << "MrMaxValu" << endl;
}
else if ( ex1 ) {
cout << "MrMax" << endl;
}
else if ( ex2 ) {
cout << "MaxValu" << endl;
}
else {
cout << -1 << endl;
}
return 0;
}
a01sa01to