제출 #955576

#제출 시각아이디문제언어결과실행 시간메모리
955576Trisanu_Das비스킷 담기 (IOI20_biscuits)C++17
9 / 100
1069 ms600 KiB
#include "biscuits.h" #include <bits/stdc++.h> using namespace std; #define ll long long vector<ll int> a; ll int x; ll int recur(int pos, ll int carry) { if (pos == 60) return 1; ll int cur = carry + a[pos]; if (cur < x) return recur(pos + 1, (cur >> 1)); else return recur(pos + 1, (cur >> 1)) + recur(pos + 1, ((cur - x) >> 1)); } ll int count_tastiness(ll int x_, vector<ll int> a_) { a = a_; x = x_; a.resize(60); return recur(0, 0); }
#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...