# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
432439 | Hazem | Packing Biscuits (IOI20_biscuits) | C++14 | 1 ms | 332 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 "biscuits.h"
#include <bits/stdc++.h>
#define LL long long
using namespace std;
LL x;
vector<LL>a;
LL bt(int i,LL cur){
if(i==a.size())
return 1;
LL ret = 0;
ret += bt(i+1,(cur+a[i])/2);
if(cur+a[i]>=x)
ret += bt(i+1,(cur+a[i]-x)/2);
return ret;
}
long long count_tastiness(long long X, std::vector<long long> A) {
x = X;a = A;
return bt(0,0);
}
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... |