| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1119720 | tsengang | 은행 (IZhO14_bank) | C++14 | 68 ms | 504 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define ll long long
#define ff first
#define ss second
#define all(x) x.begin(), x.end()
#define pb push_back
#define ertunt return
#define vodka void
using namespace std;
int main(){
ll n,m;
cin >> n >> m;
ll a;
cin >> a;
ll b[m+1];
for(ll j = 1; j <= m; j++)cin >> b[j];
for(ll i = 1; i <= (1<<m); i++){
ll res = 0;
for(ll j = 0; j < m; j++){
if(i&(1<<j)){
res+=b[j];
}
}
if(res == a){
cout << "YES";
ertunt 0;
}
}
cout << "NO";
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
