Submission #2174365
Source Code Expand
n = int(input()) a = list(map(int, input().split())) allp = 3 ** n nop = 1 for i in range(n): if a[i] % 2 == 0: nop *= 2 print(allp - nop)
Submission Info
Submission Time | |
---|---|
Task | B - Similar Arrays |
User | Poyotoron |
Language | Python (3.4.3) |
Score | 200 |
Code Size | 150 Byte |
Status | AC |
Exec Time | 17 ms |
Memory | 2940 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 200 / 200 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | subtask0_0.txt, subtask0_1.txt, subtask0_2.txt, subtask0_3.txt |
All | 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, subtask0_0.txt, subtask0_1.txt, subtask0_2.txt, subtask0_3.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
01.txt | AC | 17 ms | 2940 KB |
02.txt | AC | 17 ms | 2940 KB |
03.txt | AC | 17 ms | 2940 KB |
04.txt | AC | 17 ms | 2940 KB |
05.txt | AC | 17 ms | 2940 KB |
06.txt | AC | 17 ms | 2940 KB |
07.txt | AC | 17 ms | 2940 KB |
subtask0_0.txt | AC | 17 ms | 2940 KB |
subtask0_1.txt | AC | 17 ms | 2940 KB |
subtask0_2.txt | AC | 17 ms | 2940 KB |
subtask0_3.txt | AC | 17 ms | 2940 KB |