이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "biscuits.h"
#include "bits/stdc++.h"
using namespace std;
typedef long long ll;
#define pb push_back
#define sz(x) ((int)(x).size())
#define all(x) (x).begin(),(x).end()
ll count_tastiness(ll x,vector<ll> a){
vector<ll> ne(100,0);
for(int i=0;i<sz(a);i++) ne[i]=a[i];
for(int i=0;i<99;i++){
ll u = ne[i]/2;
ne[i+1]+=u;
ne[i]&=1;
}
ll kac=0;
for(int i=0;i<100;i++){
if(ne[i]==1LL) kac++;
}
return (1LL<<kac);
}
# | 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... |