# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
672788 | tbzard | 비스킷 담기 (IOI20_biscuits) | C++14 | 198 ms | 3564 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
long long ans[200002];
long long count_tastiness(long long x, vector<long long> a){
long long b = 1, sum = 0;
for(int j=0;j<=200000;j++) ans[j] = 1e18+1;
int l = 0;
ans[l++] = 0;
for(int i=0;i<60;i++){
if(i<a.size()) sum += b*a[i];
int m = upper_bound(ans, ans+l, sum/x-b)-ans-1;
for(int j=0;j<=m;j++) ans[l++] = ans[j]+b;
b*=2;
}
return l;
}
컴파일 시 표준 에러 (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... |