题解列表

筛选

水仙数求和

摘要:解题思路:注意事项:参考代码:for i in range(100,1000):    sn = 0    for j in str(i):        j=int(j)        sn += ……

[编程入门]报数问题

摘要:解题思路:题目要我们遇到三就让他退出,那我们不妨定义一个数组,让其中n个数都等于1,然后我们便让他们按顺序相加,当加起来等于三=3时,我们就让当这个数组等于0,最后当数组的n个数加起来等于1时,就只有……

最大公约数与最小公倍公倍数 C语言

摘要:解题思路:辗转相除法求出最小公约数,最小公倍数等于两数乘积/最小公约数。注意事项:参考代码:#include <stdio.h>int main(){ int x, y, a, b, x1, x2; ……

蓝桥杯基础练习VIP-数的读法(c++)

摘要:解题思路:帮别人写的有注释,顺便发个题解,看代码应该就理解了。参考代码:#include<iostream> #include<string> using namespace std; int ……

编写题解 1167: 矩阵(C++)暴力解题

摘要:解题思路:数组b储存每一层的移动数,上一层移动一圈,下一层+1,直到最后一层移动一圈注意事项:参考代码:#include <iostream>  using namespace std; int ……

1979,好懂的方法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int a,b,n,c,d;while(scanf("%d",&n)!=EOF){       b=0;c=n; ……

编程入门]二维数组的转置

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <malloc.h> typedef struct student {    double    number;  ……