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 <iostream>
#include <vector>
using namespace std;
long long count_tastiness(long long x, vector<long long> a){
while (a.size() < 60)
a.push_back(0);
int k = 60;
for (int i=1;i<k;i++){
a[i] += a[i-1] / 2;
a[i-1] %= 2;
}
long long ans = 1;
for (int i=0;i<k;i++)
if (a[i])
ans *= 2;
return ans;
}
# | 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... |