题解列表
排序(n个数从小到大)
摘要:
[========]
#include
void sort(int a[],int n) //定义一个排序函数sort
{
……
[编程入门]自定义函数求一元二次方程
摘要:解题思路:定义三个子函数,分别求取判别式(b^2-4*a*c)在>0(两个不同根),=0(两个相同根),<0(无实数根,输出虚数根)时的根,并输出就可以了注意事项:1.使用函数pow(x,n)和sqr……
结构体数组解决(c语言代码)
摘要:```c
#include
#include
#define MAX 101
typedef struct { // 定义一个结构体
char s[MAX];……
铺地毯 利用二维数组 易懂
摘要:解题思路:利用二维数组形成矩阵,答案中感觉比较少提到这种方法,在这里我来给出,请不吝赐教。参考代码: int n; scanf("%d",&n); ……
1492 蓝桥杯算法提高VIP-产生数
摘要:解题思路:无注意事项:无参考代码:#include<iostream>#include<cstring>using namespace std;int tag[10][10],d[10],p[1000……
1011: [编程入门]最大公约数与最小公倍数
摘要:参考代码:#include<bits/stdc++.h>using namespace std;typedef int ll;ll n,m;int main(){ cin>>n>>m; int mx=……
红红火火恍恍惚惚或或或或或或或或或或或或或或或或或或或或或或或
摘要:解题思路:注意事项:1492(题号)参考代码:#include<iostream>#include<cstring>using namespace std;int tag[10][10],d[10],……
909090909090909090909090909
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<queue>using namespace std;const int n=10;int a[n+5][n+5];i……
909090909090909090909090909
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[15][15],c=0;void f(int x,int y){ if(……