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"
using namespace std;
typedef long long ll;
#define pb push_back
#define sz(x) ((int)(x).size())
#define all(x) (x).begin(),(x).end()
ll count_tastiness(ll x,vector<ll> a){
vector<ll> ne(100,0);
for(int i=0;i<sz(a);i++) ne[i]=a[i];
for(int i=0;i<99;i++){
ll u = ne[i]/2;
ne[i+1]+=u;
ne[i]&=1;
}
ll kac=0;
for(int i=0;i<100;i++){
if(ne[i]==1LL) kac++;
}
return (1LL<<kac);
}
# | 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... |