Submission #6486771
Source Code Expand
N = int(input()) P = list(map(int, input().split())) ansl = [] for i in range(2**N): count = 0 for j in range(N): if (i >> j) & 1: count += P[j] else: ansl.append(count) print(len(set(ansl)))
Submission Info
Submission Time | |
---|---|
Task | A - コンテスト |
User | uoos |
Language | Python (3.4.3) |
Score | 0 |
Code Size | 225 Byte |
Status | TLE |
Exec Time | 2104 ms |
Memory | 14084 KB |
Judge Result
Set Name | All | ||||
---|---|---|---|---|---|
Score / Max Score | 0 / 2 | ||||
Status |
|
Set Name | Test Cases |
---|---|
All | 00, 01, 02, 90, 91 |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00 | AC | 19 ms | 3060 KB |
01 | TLE | 2104 ms | 14084 KB |
02 | TLE | 2104 ms | 9620 KB |
90 | AC | 17 ms | 2940 KB |
91 | AC | 19 ms | 2940 KB |