Submission #6411411


Source Code Expand

N = int(input())
P = list(map(int, input().split(" ")))

b = 1
for p in P:
    b |= b<<p
    b |= 1<<p
    # print(bin(b))

print(bin(b).count("1"))

Submission Info

Submission Time
Task A - コンテスト
User yayo256
Language Python (3.4.3)
Score 2
Code Size 161 Byte
Status AC
Exec Time 18 ms
Memory 2940 KB

Judge Result

Set Name All
Score / Max Score 2 / 2
Status
AC × 5
Set Name Test Cases
All 00, 01, 02, 90, 91
Case Name Status Exec Time Memory
00 AC 18 ms 2940 KB
01 AC 18 ms 2940 KB
02 AC 18 ms 2940 KB
90 AC 18 ms 2940 KB
91 AC 18 ms 2940 KB