Submission #780999

#TimeUsernameProblemLanguageResultExecution timeMemory
780999jasminPacking Biscuits (IOI20_biscuits)C++17
0 / 100
1 ms340 KiB
#include "biscuits.h" #include<bits/stdc++.h> using namespace std; long long subtask2(long long x, std::vector<long long> a) { int n=a.size(); for(int i=0; i<n-1; i++){ a[i+1] += a[i]/2; a[i]%=2; } long long ans=1; for(int i=0; i<n; i++){ ans*=(a[i]+1); } return ans; } long long count_tastiness(long long x, std::vector<long long> a) { if(x==1){ return subtask2(x, a); } return 0; }
#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...