| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 367175 | SeDunion | Packing Biscuits (IOI20_biscuits) | C++17 | 1081 ms | 364 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "biscuits.h"
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
ll count_tastiness(ll x, vector<ll> a) {
ll ans = 0;
auto b = a;
int K = min((int)a.size(), 30);
for (int y = 0 ; y <= (100000) / x ; ++ y) {
bool ok = true;
b = a;
for (int rep = 0 ; rep < x ; ++ rep) {
int cur = y;
for (int j = K - 1 ; j >= 0 ; -- j) {
int q = min(b[j], (ll)cur / (1 << j));
b[j] -= q;
cur -= (1 << j) * q;
}
if (cur != 0) {
ok = false;
break;
}
}
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... | ||||
