Submission #358070

#TimeUsernameProblemLanguageResultExecution timeMemory
358070juggernautPacking Biscuits (IOI20_biscuits)C++14
0 / 100
1092 ms364 KiB
#include"biscuits.h" #include<bits/stdc++.h> #ifndef EVAL #include"grader.cpp" #endif using namespace std; typedef long long ll; ll count_tastiness(ll x,vector<ll>a){ ll cnt=0; a.resize(62); for(int y=0;y<100001;y++){ bool flag=1; for(int i=0;i<61;i++) if(y>>i&1){ if(a[i]<x){ flag=false; break; } a[i]-=x; a[i+1]+=a[i]>>1; } cnt+=flag; } return cnt; }
#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...