Submission #3250414

Source Code Expand

Copy
N, M, X, Y = gets.split.map(&:to_i)
x = ([X] + gets.split.map(&:to_i)).max
y = ([Y] + gets.split.map(&:to_i)).min
puts x<y ? 'No War' : 'War'

Submission Info

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

Test Cases

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