Submission #1135620
Source Code Expand
#include <bits/stdc++.h> using namespace std; bitset<10001> dp={1}; int main(){ for(int n, x, i=scanf("%d",&n); (i<=n && scanf("%d", &x)) || (cout << dp.count() << endl, 0);++i) dp |= (dp << x); return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - コンテスト |
User | Namnamseo |
Language | C++14 (GCC 5.4.1) |
Score | 2 |
Code Size | 227 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 256 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 | 1 ms | 256 KB |
01 | AC | 1 ms | 256 KB |
02 | AC | 1 ms | 256 KB |
90 | AC | 1 ms | 256 KB |
91 | AC | 1 ms | 256 KB |