結果
| 問題 |
No.975 ミスターマックスバリュ
|
| ユーザー |
|
| 提出日時 | 2020-02-02 03:21:48 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 19 ms / 2,000 ms |
| コード長 | 302 bytes |
| コンパイル時間 | 542 ms |
| コンパイル使用メモリ | 63,616 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-18 20:31:10 |
| 合計ジャッジ時間 | 1,084 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 9 |
コンパイルメッセージ
main.cpp:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
4 | main()
| ^~~~
ソースコード
#include<iostream>
using namespace std;
int X,N,M;
main()
{
cin>>X>>N>>M;
bool f1=0,f2=0;
for(int i=0;i<N;i++)
{
int A;cin>>A;f1|=A==X;
}
for(int i=0;i<M;i++)
{
int A;cin>>A;f2|=A==X;
}
cout<<(f1&&f2?"MrMaxValu":f1?"MrMax":f2?"MaxValu":"-1")<<endl;
}