摘要:
https://www.acwing.com/problem/content/description/98/ 假设有A,B,C,D四个,在A上有n个。要移动到D上 在4塔的情况下 先移动i个到B上,在移动剩下的n - i个到D上(此时是在3塔的情况下) #include <bits/stdc++.h 阅读全文
posted @ 2020-03-27 18:25
Hazelxcf
阅读(166)
评论(0)
推荐(0)
摘要:
https://www.luogu.com.cn/problem/P1760 用递归计算移动容易超时,借助公式 2^n - 1当数据太大时,公式无效,算不出大数例如: #include <bits/stdc++.h> using namespace std; int n; stringstream 阅读全文
posted @ 2020-03-27 18:24
Hazelxcf
阅读(132)
评论(0)
推荐(0)

浙公网安备 33010602011771号