| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 309870 | CaroLinda | 비스킷 담기 (IOI20_biscuits) | C++14 | 2 ms | 384 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "biscuits.h"
#include <bits/stdc++.h>
#define ll long long
using namespace std ;
long long count_tastiness(long long x, vector<long long> a )
{
int k = (int)(a.size()) ;
vector<ll> online ;
ll carry = 0LL ;
for(int i = 0 ; i < k ; i++ , carry >>= 1LL )
{
carry += a[i] ;
if(carry&1) online.push_back(i) ;
}
for(int i = k ; carry > 0 ; i++ , carry >>= 1LL )
if(carry&1) online.push_back(i) ;
ll ans = 0LL;
for(auto e : online ) ans += (1LL<<e) ;
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... | ||||
