結果

問題 No.975 ミスターマックスバリュ
ユーザー waterwater
提出日時 2020-03-05 09:44:29
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 470 bytes
コンパイル時間 1,755 ms
コンパイル使用メモリ 165,296 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-22 02:07:57
合計ジャッジ時間 2,370 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 2 ms
5,376 KB
testcase_03 AC 1 ms
5,376 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 2 ms
5,376 KB
testcase_10 AC 1 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define INF 990000000
//3
using namespace std;

long long int n,a,b;


int main() {
cin>>n>>a>>b;
int x[a];
int y[b];
for(int i=0;i<a;i++)cin>>x[i];
for(int i=0;i<b;i++)cin>>y[i];

int flag1=0;
int flag2=0;
if(count(x, x+a, n)>=1)flag1++;
if(count(y, y+b, n)>=1)flag2++;

if(flag1+flag2==0){
cout <<-2<<endl;
}else if(flag1+flag2==2){
cout <<"MrMaxValu"<<endl;
}else if(flag1==1){
cout <<"MrValu"<<endl;
}else{
cout <<"MaxValu"<<endl;

}






}
0