結果
問題 |
No.975 ミスターマックスバリュ
|
ユーザー |
|
提出日時 | 2020-02-01 14:48:11 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 6 ms / 2,000 ms |
コード長 | 1,016 bytes |
コンパイル時間 | 799 ms |
コンパイル使用メモリ | 90,932 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-18 20:01:28 |
合計ジャッジ時間 | 1,081 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 9 |
ソースコード
// _/ _/ _/_/_/ _/ //_/_/_/_/ _/_/ _/_/_/_/ _/_/ _/ _/_/ // _/ _/ _/ _/ _/ _/ _/_/_/ _/ //_/ _/ _/ _/ _/ _/ _/ _/ _/ // _/_/ _/_/ _/_/ _/_/ _/_/ _/ #include<iostream> #include<algorithm> #include<cmath> #include<iomanip> #include<set> #include<map> #include<queue> #include<vector> using namespace std; typedef long long ll; const int MOD=1e9+7; const double pi=3.14159265358979323846; const int inf=2e9; const ll INF=9e18; typedef pair<ll,ll> P; int main() { cin.tie(0),cout.tie(0); ios::sync_with_stdio(false); int x,n,m,a,b,y=0,z=0; cin >> x >> n >> m; for(int i=0; i<n; i++) { cin >> a; if(a==x) { y=1; } } for(int i=0; i<m; i++) { cin >> b; if(b==x) { z=1; } } if(z&&y) { cout << "MrMaxValu" << endl; } else if(y) { cout << "MrMax" << endl; } else if(z) { cout << "MaxValu" << endl; } else { cout << -1 << endl; } }