結果
| 問題 |
No.975 ミスターマックスバリュ
|
| ユーザー |
onsen_manjuuu
|
| 提出日時 | 2020-08-02 03:42:08 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 17 ms / 2,000 ms |
| コード長 | 367 bytes |
| コンパイル時間 | 1,578 ms |
| コンパイル使用メモリ | 166,476 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-16 03:57:07 |
| 合計ジャッジ時間 | 2,646 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 9 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
using ll = long long;
int main()
{
int x, n, m;
cin >> x >> n >> m;
bool a = false, b = false;
for(int i = 0; i < n; i++){int p; cin >> p; if(p == x)a = true;}
for(int i = 0; i < m; i++){int p; cin >> p; if(p == x)b = true;}
cout << ((a&&b)?"MrMaxValu":(a?"MrMax":(b?"MaxValu":"-1"))) << endl;
}
onsen_manjuuu