题解列表

筛选

1981: 输出M到N的数

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; int main() {     int a,b……

1980: 求阶梯水费

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; int main() {     int x; ……

1979: 求平均工资

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; int main() {     int n; ……

1978: 分类计算

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; int main() {     int a,b……

1099: 校门外的树(C++)

摘要:解题思路:先对区间的起始点进行顺序排序,方便直接讨论区间终点的大小情况,根据情况对重复的区间进行去除,对衔接的区间进行拼接另外有先对整段区间赋值,再根据区间改变赋值,简化区间情况讨论的作法。参考代码:……

天才的两种解法

摘要:while True:     try:         # 从输入中读取一个6位的正整数,表示金币的总重量         k = int(input()) - 265716  # 减去初始值……

贪心盾神与积木游戏(超时有点烦)

摘要:解题思路:     贪心点:先帮差值最小的完成积木作品注意事项:参考代码:#  时间超限:   64 分      运行时间: 6803ms  m = int(input()) for _ in ……