제출 #1023507

#제출 시각아이디문제언어결과실행 시간메모리
1023507Ahmed_Solyman비스킷 담기 (IOI20_biscuits)C++14
0 / 100
1049 ms348 KiB
#include <bits/stdc++.h> using namespace std; typedef long long ll; ll count_tastiness(ll x,vector<ll> a){ int k=(int)a.size(); vector<ll>g=a; int ret=0; for(int y=0;y<=100000/x;y++){ a=g; for(int j=0;j<x;j++){ int u=y; for(int p=k-1;p>=0;p--){ if(a[p] && (1LL<<p)<=u){ u^=(1LL<<p); --a[p]; } } if(!u)++ret; } } return ret; }
#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...