题解列表
编写题解 1099: 校门外的树(C语言)
摘要:解题思路:把路设为有路长+1的元素的数组,初始化为0代表有树,把后续的坐标当做数组的序号,坐标范围内的赋值1代表没树,最后统计0的数目即可。注意事项:参考代码:#include <stdio.h>
……
1480 模拟计算器 初学者一定能懂
摘要:解题思路:用强制转换把ch转换成int类型注意事项:需要理解强制转换的定义,括号里面的是需要转换到的数据类型。e.g #include <stdio.h> int main() ……
The Kth great number
摘要:#include <bits/stdc++.h>#define debuga(v, i) cout << #v << "[" << i << "]" << " = " << v[i] << '……