猴子吃桃問題

only code #include <iostream> using namespace std; //猴子吃桃問題 int main() { //一共吃了9天, 從後往前算吃桃的數量 int days = 9,peach_sum = 1; while(days > 0){ peach_sum = (peach_sum+1)*2; days--; } cout<<
相關文章
相關標籤/搜索