Submission #1534279
Source Code Expand
#ARc080C n=int(raw_input()) l=map(int,raw_input().split()) cnt1=cnt2=cnt4=0 for i in xrange(n): if (l[i]%2)%2==0: cnt4+=1 elif l[i]%2==0: cnt2+1=1 elif l[i]%2: cnt1+=1 if cnt2==0: if cnt1<=cnt4+1: print 'Yes' else: print 'No' else: if cnt1<=cnt4: print 'Yes' else: print 'No'
Submission Info
Submission Time | |
---|---|
Task | C - 4-adjacent |
User | pluto77 |
Language | Python (2.7.6) |
Score | 0 |
Code Size | 320 Byte |
Status | RE |
Exec Time | 10 ms |
Memory | 2568 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 400 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 0_00.txt, 0_01.txt, 0_02.txt, 0_03.txt, 0_04.txt |
All | 0_00.txt, 0_01.txt, 0_02.txt, 0_03.txt, 0_04.txt, 1_00.txt, 1_01.txt, 1_02.txt, 1_03.txt, 1_04.txt, 1_05.txt, 1_06.txt, 1_07.txt, 1_08.txt, 1_09.txt, 1_10.txt, 1_11.txt, 1_12.txt, 1_13.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
0_00.txt | RE | 10 ms | 2568 KB |
0_01.txt | RE | 10 ms | 2568 KB |
0_02.txt | RE | 10 ms | 2568 KB |
0_03.txt | RE | 10 ms | 2568 KB |
0_04.txt | RE | 10 ms | 2568 KB |
1_00.txt | RE | 10 ms | 2568 KB |
1_01.txt | RE | 10 ms | 2568 KB |
1_02.txt | RE | 10 ms | 2568 KB |
1_03.txt | RE | 10 ms | 2568 KB |
1_04.txt | RE | 10 ms | 2568 KB |
1_05.txt | RE | 10 ms | 2568 KB |
1_06.txt | RE | 10 ms | 2568 KB |
1_07.txt | RE | 10 ms | 2568 KB |
1_08.txt | RE | 10 ms | 2568 KB |
1_09.txt | RE | 10 ms | 2568 KB |
1_10.txt | RE | 10 ms | 2568 KB |
1_11.txt | RE | 10 ms | 2568 KB |
1_12.txt | RE | 10 ms | 2568 KB |
1_13.txt | RE | 10 ms | 2568 KB |