제출 #823970

#제출 시각아이디문제언어결과실행 시간메모리
823970Abrar_Al_Samit비스킷 담기 (IOI20_biscuits)C++17
9 / 100
1073 ms340 KiB
#include <bits/stdc++.h> #include "biscuits.h" using namespace std; long long count_tastiness(long long x, vector<long long> a) { a.resize(60); int k = a.size(); long long ans = 0; for(long long y=0; y<=100000; ++y) { auto b = a; bool yes = true; for(int i=0; i<k; ++i) { if(y >> i & 1) { yes &= b[i] >= x; b[i] -= x; } if(i<k-1) b[i+1] += b[i] / 2; } ans += yes; } 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...