#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll count_tastiness(ll x, vector<ll> a) {
    while (a.size() <= 60) a.push_back(0);
    vector<ll> can = {0};
    for (ll i = 0; i < a.size(); i++) {
        vector<ll> nextcan;
        for (ll j : can) {
            nextcan.push_back(a[i]*(1LL<<i)+j);
            ll val = (a[i]-x)*(1LL<<i)+j;
            if (val >= 0) nextcan.push_back(val);
        }
        can = nextcan;
    }
    return can.size();
}
| # | 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... |