题解列表

筛选

汽水瓶 简单代码 C++实现

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){    int n; //n表示空瓶数量    while(cin>>……

3048: 抓住那头牛

摘要:解题思路: BFS: 三种移动方向 + 1, - 1, 2 * x注意事项:参考代码:#include<iostream> #include<cstring> using namespace st……

只用if_else不用循环,注释详细

摘要:解题思路:用总刷题数除以一周的刷题总数,从而将天数问题转化为一个周期内的分段问题注意事项:注意分段做到不重不漏参考代码:#include<bits/stdc++.h> #define ll long……

2835: 计算书费

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;double a[10]= { 28.9,32.7,45.6,78,35,86.2……

2836: 数组逆序重放

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long a[100000];//不限制范围int main(){    ……