题解列表

筛选

简单求三个数最大值

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int max(int a,int b){  //判断大小    return a>b?a:b;     //使用条件运算符:如果a>b……

数字处理与判断1099

摘要:解题思路:将输入的整数变为字符串,用<string.h>里的strlen()计算该字符串的位数;               2.用for循环输出单个字符;注意事项:for循环中的循环次数=strle……

题目 1171: 蟠桃记解答

摘要:解题思路:a[n]=2*(a[n]+1)注意事项:别忘了if(n==1) result=1;这两行!参考代码:#includeusing namespace std; int f(int n){ ……

不重复的输出数(新手题解)

摘要:解题思路:记录数组中的最大值,记录每个数字的出现次数,输出时从1到最大值遍历,次数大于0则输出注意事项:参考代码:#include<stdio.h>int c[99999]={0},d[99999];……

枚举法 列出所有的可能

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

简单计算机器实现

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

[编程入门]矩阵对角线求和

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    int a[3][3];    for(int i=0……