题解列表

筛选

最大公约数与最小公倍公倍数 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;  ……

1635 这才是好方法

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

运用函数解决问题

摘要:解题思路:调用reverse函数在进行相加注意事项:建议了解字符串相关的函数参考代码#include <iostream>#include <string>#include <algorithm>us……

高精度加法 C++

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<vector> using namespace std; vector<int> add(vector<in……

蓝桥杯历届试题-回文数字

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int n; bool f(int x){     int a[6],i=0,nu……

简单粗暴,有什么不对的指出来,谢谢了。

摘要:解题思路:求出10至1000之内能同时被2、3、7整除的数,并输出。每行一个。 咱们可以看到这个数有一个特i点,就是可以被42整除(即2,3,7的最小公倍数),怎么就可以从42开始。注意事项:参考代码……