| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1029517 | irmuun | 비스킷 담기 (IOI20_biscuits) | C++17 | 1047 ms | 604 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
//#include "biscuits.h"
using namespace std;
#define ll long long
#define pb push_back
#define ff first
#define ss second
#define all(s) s.begin(),s.end()
#define rall(s) s.rbegin(),s.rend()
ll count_tastiness(ll x,vector<ll>a){
ll ans=0;
vector<ll>c(60,0);
for(ll i=0;i<=100000;i++){
if(i*x>(ll)1e18) break;
fill(all(c),0);
for(ll j=0;j<a.size();j++){
c[j]=a[j];
}
bool can=true;
for(ll j=0;j<60;j++){
if(i&(1ll<<j)){
if(c[j]<x){
can=false;
break;
}
c[j]-=x;
}
if(j<59){
c[j+1]+=c[j]/2;
}
}
if(can){
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... | ||||
