# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
47618 | IvanC | Ice Hockey World Championship (CEOI15_bobek) | C++17 | 251 ms | 21660 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
vector<ll> S1,S2,V1,V2;
ll N,M,ptr,A,B,tot;
void brute1(ll val,int pos){
if(pos == A){
S1.push_back(val);
return;
}
brute1(val + V1[pos],pos+1);
brute1(val,pos+1);
}
void brute2(ll val,int pos){
if(pos == B){
S2.push_back(val);
return;
}
brute2(val + V2[pos],pos+1);
brute2(val,pos+1);
}
int main(){
cin >> N >> M;
for(int i = 0;i<N;i++){
ll x;
cin >> x;
if(i & 1) V1.push_back(x);
Compilation message (stderr)
# | 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... |
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |