제출 #955577

#제출 시각아이디문제언어결과실행 시간메모리
955577Trisanu_Das비스킷 담기 (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...