結果

問題 No.975 ミスターマックスバリュ
ユーザー onsen_manjuuu
提出日時 2020-08-02 03:40:08
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 351 bytes
コンパイル時間 1,579 ms
コンパイル使用メモリ 165,360 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-16 03:56:16
合計ジャッジ時間 1,888 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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