(UPD: 2024-12-04 14:48 UTC) Judge is not working due to Cloudflare incident. (URL) We can do nothing about it, sorry. After the incident is resolved, we will grade all submissions.

Submission #622928

#TimeUsernameProblemLanguageResultExecution timeMemory
622928JeanBombeurPacking Biscuits (IOI20_biscuits)C++17
100 / 100
15 ms812 KiB
#include "biscuits.h" #define ll long long ll D[61]; ll count_tastiness(ll x, std::vector<ll> a) { D[0]=1,a.resize(61); for (int i=1;i<61;i++) { ll s=a[i]=(a[i]<<i)+a[i-1];D[i]=1; for (int j=i-1;j>=0;j--) { s=s<a[j]?s:a[j]; if (x<=(s>>j)) D[i]+=D[j],s-=(x<<j);}} return D[60]; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...