题解列表

筛选

建立数组,预设前两项,定义数组构成

摘要:解题思路:建立数组,预设前两项,定义数组的构成。注意事项:输出第k位数,对应的索引是k-1。参考代码:#include<iostream>using namespace std;int main(){……

字符逆序使用reverse求解

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

1063: 二级C语言-统计字符

摘要:解题思路:注意事项:注意分别输出的顺序,不能写乱。参考代码:#include <stdio.h>int main(void){    int a = 0, b = 0, c = 0, d = 0;  ……

逐层拆开逻辑,还原每一次计算的过程

摘要:解题思路:逐层拆开逻辑,还原每一次计算的过程。注意,rest+300的位置,前后需要有区分,否则容易混淆。参考代码:#include<iostream> using namespace std; ……