Submission #3258111


Source Code Expand

Copy
#include<vector>
#include<cmath>
#include<map>
#include<cstdlib>
#include<iostream>
#include<sstream>
#include<fstream>
#include<string>
#include<algorithm>
#include<cstring>
#include<cstdio>
#include<set>
#include<stack>
#include<bitset>
#include<functional>
#include<ctime>
#include<queue>
#include<deque>
#include<complex>
#include<cassert>
using namespace std;
#define pb push_back
#define pf push_front
typedef long long lint;
typedef complex<double> P;
#define mp make_pair
#define fi first
#define se second
typedef pair<int,int> pint;
#define All(s) s.begin(),s.end()
#define rAll(s) s.rbegin(),s.rend()
#define REP(i,a,b) for(int i=a;i<b;i++)
#define rep(i,n) REP(i,0,n)
int main()
{
	int n,m,X,Y,x,y;
	cin>>n>>m>>X>>Y;
	rep(i,n){
		cin>>x;X=max(x,X);
	}
	rep(i,m){
		cin>>y;Y=min(y,Y);
	}
	if(X<Y) cout<<"No War"<<endl;else cout<<"War"<<endl;
}

Submission Info

Submission Time
Task B - 1 Dimensional World's Tale
User sky58
Language C++14 (Clang 3.8.0)
Score 200
Code Size 900 Byte
Status
Exec Time 2 ms
Memory 384 KB

Test Cases

Set Name Score / Max Score Test Cases
All 200 / 200 hand1, hand2, max1, max2, max3, max4, max5, max7, max8, normal1, normal2, normal3, normal4, normal5, sample_01, sample_02, sample_03
Sample 0 / 0 sample_01, sample_02, sample_03
Case Name Status Exec Time Memory
hand1 2 ms 384 KB
hand2 1 ms 256 KB
max1 1 ms 256 KB
max2 1 ms 256 KB
max3 1 ms 256 KB
max4 1 ms 256 KB
max5 1 ms 256 KB
max7 1 ms 256 KB
max8 1 ms 256 KB
normal1 1 ms 256 KB
normal2 1 ms 256 KB
normal3 1 ms 256 KB
normal4 1 ms 256 KB
normal5 1 ms 256 KB
sample_01 1 ms 256 KB
sample_02 1 ms 256 KB
sample_03 1 ms 256 KB