| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 996347 | Rifal | 비스킷 담기 (IOI20_biscuits) | C++14 | 1066 ms | 412 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "biscuits.h"
#include <bits/stdc++.h>
using namespace std;
long long count_tastiness(long long x, std::vector<long long> a) {
long long ans = 0;
int siz = a.size();
for(long long i = 0; i <= 200000; i++) {
long long cur[100] = {};
for(int j = 0; j < siz; j++) cur[j] = a[j];
bool ok = true;
for(long long j = 0; j < 60; j++) {
if((i&(1ll<<j)) > 0) {
if(cur[j] >= x) {
cur[j] -= x;
}
else {
ok = false; break;
}
}
if(ok == false) break;
cur[j+1] += (cur[j]/2ll);
}
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... | ||||
