結果

問題 No.975 ミスターマックスバリュ
ユーザー onsen_manjuuu
提出日時 2020-08-02 03:38:27
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 351 bytes
コンパイル時間 1,565 ms
コンパイル使用メモリ 165,456 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-16 03:56:02
合計ジャッジ時間 2,337 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 1 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>

using namespace std;
using ll = long long;


int main()
{
    int x, n, m;
    cin >> x >> n >> m;
    bool a, b;
    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;
}
0