| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 309894 | CaroLinda | 비스킷 담기 (IOI20_biscuits) | C++14 | 1130 ms | 1051280 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "biscuits.h"
#include <bits/stdc++.h>
#define all(x) x.begin(),x.end()
#define ll long long
using namespace std ;
long long count_tastiness(long long x, vector<long long> a )
{
while( (int)(a.size()) < 60 ) { a.push_back(0LL) ; } ;
vector<ll> pos(1,0LL) ;
ll curSoma = 0LL ;
for(int i = 0 ; i < 30 ; i++ )
{
curSoma += a[i] * (1LL<<i) ;
int idx = upper_bound(all(pos), curSoma - x*(1LL<<i) ) - pos.begin() - 1 ;
for(int j = 0 ; j <= idx ; j++ )
pos.push_back( pos[j] + x*(1LL<<i) ) ;
}
return (int)(pos.size() ) ;
}| # | 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... | ||||
