Created
September 24, 2018 04:22
-
-
Save whatalnk/005f39e061f42a0111e36c8fae43a637 to your computer and use it in GitHub Desktop.
AtCoder ABC #110 B
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 = 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