제출 #434825

#제출 시각아이디문제언어결과실행 시간메모리
434825jairRSPacking Biscuits (IOI20_biscuits)C++17
0 / 100
1 ms332 KiB
#include "biscuits.h"
#include <bits/stdc++.h>
typedef long long ll;
using namespace std;

long long count_tastiness(long long x, std::vector<long long> a) {
	ll k = a.size();
	ll sizes = 1; //the case where there are no biscuits in the bag
	
	ll power2 = 1;
	for (int i = 0; i < k; i++)
	{
		sizes += power2*a[i];
		power2 *= 2;
	}
	return sizes;
}
#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...