제출 #672754

#제출 시각아이디문제언어결과실행 시간메모리
672754tbzard비스킷 담기 (IOI20_biscuits)C++14
0 / 100
181 ms380 KiB
#include <bits/stdc++.h> using namespace std; long long count_tastiness(long long x, vector<long long> a){ long long ans = 0; for(int i=0;i<=100000;i++){ long long sum = 0; bool ok = 1; for(int j=0;j<(int)a.size();j++){ sum += a[j]; if((i>>j)&1) sum--; if(sum < 0){ ok = 0; break; } sum /= 2; } if(ok) 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...