Submission #6220802
Source Code Expand
#include <bits/stdc++.h> const int INF=1e9; const int MOD=1e9+7; //const int MOD=998244353; const long long LINF=1e18; using namespace std; #define int long long //template //main signed main(){ int v[10]={25,39,51,76,163,111,136,128,133,138}; set<int> s; for(int i=0;i<1024;i++){ int res=0; for(int j=0;j<10;j++)if((i>>j)&1)res+=v[j]; s.insert(res); } v[6]=58; for(int i=0;i<1024;i++){ int res=0; for(int j=0;j<10;j++)if(i>>j)res+=v[j]; s.insert(res); } for(int p:s)cout<<p<<endl; }
Submission Info
Submission Time | |
---|---|
Task | A - 得点 |
User | drogskol |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 551 Byte |
Status | WA |
Exec Time | 2 ms |
Memory | 256 KB |
Judge Result
Set Name | Sample | All | ||
---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 25 | ||
Status | AC |
|
Set Name | Test Cases |
---|---|
Sample | |
All | 1.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
1.txt | WA | 2 ms | 256 KB |