Submission #605633
Source Code Expand
N=input() a=set([0]) for p in map(int,raw_input().split()): a=a|set([p+m for m in a]) print len(a)
Submission Info
Submission Time | |
---|---|
Task | A - コンテスト |
User | nagihito1126 |
Language | Python (2.7.3) |
Score | 2 |
Code Size | 105 Byte |
Status | AC |
Exec Time | 125 ms |
Memory | 4728 KB |
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 2 / 2 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | 00, 01, 02, 90, 91 |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00 | AC | 58 ms | 3536 KB |
01 | AC | 73 ms | 4204 KB |
02 | AC | 125 ms | 4728 KB |
90 | AC | 55 ms | 3428 KB |
91 | AC | 54 ms | 3424 KB |