Submission #3276612


Source Code Expand

#
# File    : B.rb
# Author  : Kazune Takahashi
# Created : 2018-9-23 21:03:15
# Powered by Visual Studio Code
#

n, m, x, y = gets.chomp.split(" ").map{|i| i.to_i}
k = gets.chomp.split(" ").map{|i| i.to_i}
l = gets.chomp.split(" ").map{|i| i.to_i}
if [x, k.max].max < [y, l.min].min
  puts "No War"
else
  puts "War"
end

Submission Info

Submission Time
Task B - 1 Dimensional World's Tale
User kazunetakahashi
Language Ruby (2.3.3)
Score 200
Code Size 337 Byte
Status AC
Exec Time 7 ms
Memory 3836 KB

Compile Error

./Main.rb:8: warning: assigned but unused variable - n
./Main.rb:8: warning: assigned but unused variable - m

Judge Result

Set Name All Sample
Score / Max Score 200 / 200 0 / 0
Status
AC × 17
AC × 3
Set Name Test Cases
All hand1, hand2, max1, max2, max3, max4, max5, max7, max8, normal1, normal2, normal3, normal4, normal5, sample_01, sample_02, sample_03
Sample sample_01, sample_02, sample_03
Case Name Status Exec Time Memory
hand1 AC 7 ms 1788 KB
hand2 AC 7 ms 1788 KB
max1 AC 7 ms 1788 KB
max2 AC 7 ms 1788 KB
max3 AC 7 ms 1788 KB
max4 AC 7 ms 1788 KB
max5 AC 7 ms 3836 KB
max7 AC 7 ms 1788 KB
max8 AC 7 ms 1788 KB
normal1 AC 7 ms 1788 KB
normal2 AC 7 ms 1788 KB
normal3 AC 7 ms 1788 KB
normal4 AC 7 ms 1788 KB
normal5 AC 7 ms 1788 KB
sample_01 AC 7 ms 1788 KB
sample_02 AC 7 ms 1788 KB
sample_03 AC 7 ms 1788 KB