- 博客(1)
- 收藏
- 关注
原创 练习:小球的旅行
题面: 思路: 很简单的模拟, 等球所在位置>最后的叶子序号,这个球就动换完了. 硬干吧同志们 代码: 1 #include <iostream> 2 #include <math.h> 3 4 using namespace std; 5 6 int d,m,q,tmax; 7 bool tree[2000010]={0}; 8 9 void trip(int i) 10 { 11 if(i>tmax) 12 { 1
2020-08-17 15:27:16 352
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人