Submission #1092454


Source Code Expand

N = input().split()
K = int(N[0])
NN = input().split()
even = [int(n) for n in NN if int(n) % 2 == 0]
odd = [int(n) for n in NN if int(n) % 2 != 0]
if K % 2 == 0 and K > 2:
    print("YES")
else:
    if len(odd) % 2 != 0:
        print("NO")
    else:
        print("YES")

Submission Info

Submission Time
Task A - Addition
User pudding_info
Language Python (3.4.3)
Score 0
Code Size 283 Byte
Status WA
Exec Time 116 ms
Memory 14148 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 300
Status
AC × 2
AC × 12
WA × 2
Set Name Test Cases
Sample sample1.txt, sample2.txt
All sample1.txt, sample2.txt, in1.txt, in10.txt, in11.txt, in12.txt, in2.txt, in3.txt, in4.txt, in5.txt, in6.txt, in7.txt, in8.txt, in9.txt
Case Name Status Exec Time Memory
in1.txt AC 112 ms 14148 KB
in10.txt AC 111 ms 14056 KB
in11.txt AC 22 ms 3064 KB
in12.txt AC 22 ms 3064 KB
in2.txt AC 112 ms 14048 KB
in3.txt AC 111 ms 14144 KB
in4.txt WA 112 ms 14148 KB
in5.txt WA 112 ms 14136 KB
in6.txt AC 116 ms 14060 KB
in7.txt AC 111 ms 14056 KB
in8.txt AC 112 ms 14036 KB
in9.txt AC 111 ms 14132 KB
sample1.txt AC 22 ms 3064 KB
sample2.txt AC 22 ms 3064 KB