题解列表

筛选

通俗易懂的C++方法

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

小学生水平题解

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

蓝桥杯专题系列-2656(Python)

摘要:解题思路:简单题目简单写注意事项:减少循环次数最关键参考代码:a, b, n = map(int, input().split())cnt = 0smr = a * 5 + b * 2rec_week……

蓝桥杯专题系列-2664(Python)

摘要:解题思路:找到处理数据的合理方法,前缀和(说到底还是数学敏感)注意事项:注意sum()嵌套问题,尽量减少循环参考代码:暴力法:itertools的组合import itertoolsn = int(i……

1098:陶陶摘苹果(C++代码)

摘要:解题思路:简单题,算法难度较低注意事项:参考代码:#include <iostream>using namespace std;int main(){    int arr[10] = {0};   ……