题解列表

筛选

一维数组的解法

摘要:```cpp#includeusing namespace std;int main(){ int a; while(cin >> a) { ……

蓝桥杯算法训练VIP-幂方分解(python17行)

摘要:解题思路:每次求出幂次的组成由大到小排列,存储到列表里(也可以直接由高幂次到低幂次遍历),再利用递归求解。注意事项:参考代码:解法一:列表存储幂次组合def fun2(x): # 求出幂次……

2918成绩排序--链表实现

摘要:解题思路:链表实现注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#include <string.h>typedef……

C++:勉强算找规律仔细解题,参考了某个人的题解

摘要:解题思路:我把金字塔外面的空格用零表示,金字塔内部的空格用一表示,以第三个金字塔为例观察图像可以发现除了最后一行和第一行之外,其他的金字塔中间都是空白的,整体是对称的,所以是有规律的规律如下:……

3020: 最大数位置

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

1738: 排序 冒泡排序

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>#include<cmath>using namespace s……

2025/8/18刷题记录

摘要:解题思路:End of file意思是输入不为null注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){&nb……

2025/8/18刷题记录

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include <string.h>int main(){ char s[51];&……