Skip to content

Instantly share code, notes, and snippets.

@whatalnk
Created September 24, 2018 04:22
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 whatalnk/005f39e061f42a0111e36c8fae43a637 to your computer and use it in GitHub Desktop.
Save whatalnk/005f39e061f42a0111e36c8fae43a637 to your computer and use it in GitHub Desktop.
AtCoder ABC #110 B
n, m, x, y = gets.chomp.split(" ").map(&:to_i)
xx = gets.chomp.split(" ").map(&:to_i)
yy = gets.chomp.split(" ").map(&:to_i)
xxmax = [xx.max, x].max
yymin = [yy.min, y].min
if xxmax < yymin
puts "No War"
else
puts "War"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment