| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1082792 | beaconmc | 비스킷 담기 (IOI20_biscuits) | C++14 | 140 ms | 432 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "biscuits.h"
#include <bits/stdc++.h>
typedef long long ll;
#define FOR(i,x,y) for(ll i=x; i<y; i++)
#define FORNEG(i,x,y) for(ll i=x; i>y; i--)
using namespace std;
long long count_tastiness(long long x, std::vector<long long> a) {
vector<ll> temp = a;
if (x>100005) return 1;
ll ans = 0;
FOR(req,0,100005/x + 2){
a = temp;
bool flag = false;
ll cnt = 0;
FOR(k,0,x){
ll sus = 0;
FORNEG(i,a.size()-1, -1){
ll mini = min((req-sus)/(1<<i), a[i]);
a[i] -= mini;
sus += mini * (1<<i);
}
if (sus != req){
flag = true;
break;
}
}
if (!flag)ans++;
}
return ans;
}
컴파일 시 표준 에러 (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... | ||||
