题解列表

筛选

逐步比较法求得三个数中最大值

摘要:解题思路:一共存在三个数,若要求得最大值,可以先比C和B,然后将C与B中较大的值去与A比较。就可以得出最大的一个数啦!max(b,c)就是B和C中较大的数max(a,max(b,c))就是A和B与C中……

明明的随机数(正规)

摘要:解题思路:把相等于0,然后在排,在定义个数组,把不等于0的复制其中,然后输出.......注意事项:无参考代码:#include<iostream>#include<algorithm>using n……

蛇行矩阵(简简单单)

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

编写题解 2814: 正常血压c++

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    int a,b,c,d,sum=0,sum1=0,aa……

感谢支持,谢谢你们的支持

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){   int n,s=0,t=0;   cin>>n;   for(in……

偶数求和利用数组解决

摘要:解题思路:利用数组的思路,通过索引注意事项:参考代码:#include <stdio.h> int main() {    int n, m,i,j;         while (scanf("%d……

fgets解决问题

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