(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 #1052355

#TimeUsernameProblemLanguageResultExecution timeMemory
1052355Huseyn123Packing Biscuits (IOI20_biscuits)C++17
0 / 100
1 ms348 KiB
#include "biscuits.h" #define pb push_back #include <bits/stdc++.h> using namespace std; long long count_tastiness(long long x, std::vector<long long> a) { long long k=(long long)a.size(); vector<vector<long long>> c; vector<long long> d(k,0); c.pb(d); for(long long i=0;i<k;i++){ long long sz=(long long)c.size(); for(long long j=0;j<sz;j++){ c[j][i]=a[i]; if(i){ c[j][i]+=c[j][i-1]/2; } if(c[j][i]>=x){ c[j][i]-=x; c.pb(c[j]); c[j][i]+=x; } } } long long res=(long long)c.size(); return res; }
#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...