Submission #3253074

Source Code Expand

Copy
N, M, X, Y = map(int, input().split())
x = list(map(int, input().split()))
y = list(map(int, input().split()))
#print(N, M, X, Y)
#print(x)
#print(y)
x.append(X)
y.append(Y)


def is_war(x, y):
    flag = "No War"
    for i in x:
        for j in y:
            if i >= j:
                flag = "War"
                return flag
    return flag


flag = is_war(x, y)
print(flag)

Submission Info

Submission Time
Task B - 1 Dimensional World's Tale
User showyou41
Language Python3 (3.4.3)
Score 200
Code Size 400 Byte
Status
Exec Time 17 ms
Memory 3064 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 17 ms 3060 KB
hand2 17 ms 2940 KB
max1 17 ms 3060 KB
max2 17 ms 3060 KB
max3 17 ms 3060 KB
max4 17 ms 3060 KB
max5 17 ms 3060 KB
max6 17 ms 3060 KB
max7 17 ms 3064 KB
max8 17 ms 2940 KB
normal1 17 ms 2940 KB
normal2 17 ms 3060 KB
normal3 17 ms 3060 KB
normal4 17 ms 3060 KB
normal5 17 ms 3060 KB
sample_01 17 ms 3064 KB
sample_02 17 ms 3060 KB
sample_03 17 ms 3060 KB