| # | Time | Username | Problem | Language | Result | Execution time | Memory | 
|---|---|---|---|---|---|---|---|
| 582237 | joelau | 비스킷 담기 (IOI20_biscuits) | C++14 | 1132 ms | 1050992 KiB | 
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "biscuits.h"
#include <bits/stdc++.h>
using namespace std;
vector<long long> ans;
long long count_tastiness(long long x, vector<long long> a) {
	while (a.size() < 60) a.push_back(0);
	ans = {0};
	long long sum = 0;
	for (long long i = 0; i < a.size(); ++i) {
		sum += a[i] * (1ll<< i);
		long long n = ans.size();
		for (long long j = 0; j < n && ans[j] <= sum/x - (1ll<<i); ++j) ans.push_back(ans[j]+(1ll<<i));
	}
	return ans.size();
}
Compilation message (stderr)
| # | 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... | ||||
