| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 448425 | dxz05 | 비스킷 담기 (IOI20_biscuits) | C++14 | 232 ms | 332 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "biscuits.h"
#include <bits/stdc++.h>
typedef long long ll;
using namespace std;
long long count_tastiness(long long x, vector<long long> a) {
if (x > 100000) return 1;
int k = a.size();
ll ans = 1;
for (int val = 1; val * x <= 1e5; val++){
vector<ll> b = a;
bool ok = true;
for (int it = 0; it < x; it++){
ll y = val;
for (int i = k - 1; i >= 0; i--){
ll cur = min(b[i], y / (1ll << i));
y -= (1ll << i) * cur;
b[i] -= cur;
}
if (y) ok = false;
}
if (ok) ans++;
}
return ans;
}
| # | 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... | ||||
