이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "biscuits.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int MX=2e5+5;
ll good[MX];
long long count_tastiness(long long X, std::vector<long long> a) {
	while(a.size()<60) a.push_back(0);
	good[0]=0;
	int ptr=1;
	ll sum=0;
	for(int b=0;b<60;b++) {
		ll c=1LL<<b;	
		sum+=a[b]*c;
		int tmp=ptr;
		for(int i=0;i<tmp;i++) {
			ll y=good[i]+c;
			if(y<=sum/X) 
				good[ptr++]=y;
			else
				break;
		}
	}
	return ptr;
}
| # | Verdict  | Execution time | Memory | Grader output | 
|---|
| Fetching results... | 
| # | Verdict  | Execution time | Memory | Grader output | 
|---|
| Fetching results... | 
| # | Verdict  | Execution time | Memory | Grader output | 
|---|
| Fetching results... | 
| # | Verdict  | Execution time | Memory | Grader output | 
|---|
| Fetching results... | 
| # | Verdict  | Execution time | Memory | Grader output | 
|---|
| Fetching results... |