제출 #699808

#제출 시각아이디문제언어결과실행 시간메모리
699808happypotato비스킷 담기 (IOI20_biscuits)C++17
9 / 100
1095 ms340 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...