# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1033410 | Maite_Morale | Packing Biscuits (IOI20_biscuits) | C++14 | 4 ms | 1116 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 <bits/stdc++.h>
using namespace std;
long long count_tastiness(long long x, std::vector<long long> a) {
long long r=0, c=0;
for(long long i=0;i<64;i++){
if(i<a.size())c+=(a[i]<<i);
/// cerr<<r<<"=max(0LL,min("<<(c/x)<<"-"<<(1LL<<i)<<"+1,"<<(1LL<<i)<<"))\n";
r+=max(0LL,min((c/x)-(1LL<<i)+1,(1LL<<i)));
}
return r+1;
}
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... |