Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save monchy-monchy/c16ce1626947df14a4ceae41d8c2b3f5 to your computer and use it in GitHub Desktop.
Save monchy-monchy/c16ce1626947df14a4ceae41d8c2b3f5 to your computer and use it in GitHub Desktop.
ABC110 B - 1 Dimensional World's Tale
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