Submission #672754

#TimeUsernameProblemLanguageResultExecution timeMemory
672754tbzardPacking Biscuits (IOI20_biscuits)C++14
0 / 100
181 ms380 KiB
#include <bits/stdc++.h> using namespace std; long long count_tastiness(long long x, vector<long long> a){ long long ans = 0; for(int i=0;i<=100000;i++){ long long sum = 0; bool ok = 1; for(int j=0;j<(int)a.size();j++){ sum += a[j]; if((i>>j)&1) sum--; if(sum < 0){ ok = 0; break; } sum /= 2; } if(ok) ans++; } return ans; }
#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...