제출 #305713

#제출 시각아이디문제언어결과실행 시간메모리
305713arthurconmy비스킷 담기 (IOI20_biscuits)C++14
0 / 100
2 ms640 KiB
#ifndef ARTHUR_LOCAL #include "biscuits.h" #endif #ifdef ARTHUR_LOCAL #include <bits/stdc++.h> #endif using namespace std; using ll = long long; ll count_tastiness(ll x, vector<ll> A) { ll ans = 0LL; for(int i=0; i<=100000; i++) { vector<ll> curA = A; bool w=1; for(int b=0; b<20; b++) { if((i & (1<<b)) != 0) { if(curA[i] < x) w=0; else curA[i] -= x; } curA[i+1] += ll(curA[i]/2LL); } if(w) ans++; } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...