Submission #955577

#TimeUsernameProblemLanguageResultExecution timeMemory
955577Trisanu_DasPacking Biscuits (IOI20_biscuits)C++17
12 / 100
1 ms436 KiB
#include <bits/stdc++.h> using namespace std; long long count_tastiness(long long x, vector<long long> a) { long long ans = 1; long long curr = 0, lst = -1; for(int i = 0; i < (int) a.size(); i++) { if(curr < (1LL << (i - lst))) ans *= (curr + 1), curr = 0, lst = i; curr += (1LL << (i - lst)) * a[i]; } ans *= (curr + 1); 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...