結果

問題 No.975 ミスターマックスバリュ
ユーザー t98slider
提出日時 2020-06-02 09:37:43
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 392 bytes
コンパイル時間 1,465 ms
コンパイル使用メモリ 166,920 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-23 18:21:33
合計ジャッジ時間 2,129 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 1 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main(void){
    int ans=0;
    int n,m,x,i,a;
    cin>>x>>n>>m;
    for(i=0;i<n;i++){
        cin>>a;
        if(a==x)ans+=1;
    }
    for(i=0;i<m;i++){
        cin>>a;
        if(a==x)ans+=2;
    }
    if(a>=3)cout<<"MrMaxValu"<<endl;
    else if(a==2)cout<<"MaxValu"<<endl;
    else if(a==1)cout<<"MrMax"<<endl;
    else cout<<-1<<endl;
}
0