#include "biscuits.h"
#include<bits/stdc++.h>
#define ll long long
using namespace std;
ll count_tastiness(ll x, vector<ll> v){
while(v.size()<60) v.push_back(0);
vector<ll>resp;
resp.push_back(0);
for(ll a : v){
vector<ll>aux;
for(ll &b : resp){
b/=2;
b+=a;
if(b>=x) aux.push_back(b-x);
}
for(ll b : aux) resp.push_back(b);
}
ll tam=resp.size();
return tam;
}
| # | 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... |