제출 #480087

#제출 시각아이디문제언어결과실행 시간메모리
480087couplefire비스킷 담기 (IOI20_biscuits)C++17
9 / 100
1151 ms1051132 KiB
#include <bits/stdc++.h> using namespace std; #define int long long int count_tastiness(int x, vector<int> cnt){ vector<int> dp = {0}; cnt.resize(60); for(int i = 0, hi = 0; i<60; ++i){ hi += cnt[i]*(1<<i); for(int j = 0, m = dp.size(); j<m && dp[j]+(1ll<<i)<=hi/x; ++j) dp.push_back(dp[j]+(1ll<<i)); } return dp.size(); }
#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...