제출 #307708

#제출 시각아이디문제언어결과실행 시간메모리
307708CodePlatina비스킷 담기 (IOI20_biscuits)C++14
12 / 100
1 ms384 KiB
#include "biscuits.h" using namespace std; long long count_tastiness(long long x, vector<long long> a) { int k = a.size(); long long ret = 1, con = 1, cnt = 0; for(int i = 0; i < k; ++i) { cnt += a[i] * con; if(cnt < 2 * con - 1) { ret *= (cnt + 1); con = 1; cnt = 0; } else con *= 2; } ret *= (cnt + 1); return ret; }
#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...