結果
| 問題 | No.975 ミスターマックスバリュ |
| コンテスト | |
| ユーザー |
LV3zJigVW57oPGy
|
| 提出日時 | 2022-11-15 22:06:27 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 728 bytes |
| コンパイル時間 | 3,184 ms |
| コンパイル使用メモリ | 158,888 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-16 20:50:43 |
| 合計ジャッジ時間 | 3,768 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 RE * 1 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#include <stdio.h>
#include <iomanip>
#include <iostream>
#include <string>
#include <algorithm>
int main(){
int number, a, b;
int count1 = 0;
int count2 = 0;
cin >> number >> a >> b;
vector<int> vecMr(a);
vector<int> vecMax(b);
for(int i=0;i<a;i++){
cin >> vecMr.at(i);
if(vecMr.at(i)==number){
count1++;
break;
}
}
for(int i=0;i<a;i++){
cin >> vecMax.at(i);
if(vecMax.at(i)==number){
count2++;
break;
}
}
if(count1==0&&count2==0){
cout << -1;
}
else if(count1==1&&count2==0){
cout << "MrMax";
}
else if(count1==0&&count2==1){
cout << "MaxValu";
}
else{
cout << "MrMaxValu";
}
}
LV3zJigVW57oPGy