Created
August 7, 2021 04:50
-
-
Save monchy-monchy/c16ce1626947df14a4ceae41d8c2b3f5 to your computer and use it in GitHub Desktop.
ABC110 B - 1 Dimensional World's Tale
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
N, M, X, Y = list(map(int, input().split())) | |
x = list(map(int, input().split())) | |
y = list(map(int, input().split())) | |
x.append(X) | |
y.append(Y) | |
x.sort() | |
y.sort() | |
min_y = min(y) | |
min_x = min(x) | |
max_x = max(x) | |
if min_x <= min_y <= max_x: | |
print("War") | |
else: | |
print("No War") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment