题解列表

筛选

简易代码(C)望空破茧

摘要:解题思路:编写一个程序,输入a、b、c三个值,输出其中最大值。注意事项:本题解法多样化,仅作参考。参考代码:#include <stdio.h>#include <math.h>int main() ……

唯一一个C++题解

摘要:解题思路:很简单不讲了注意事项:没啥好说的参考代码:#include<iostream>#include<cstdio>using namespace std ;int main(){    int ……

1282: 公交汽车 dfs vs dp

摘要:### 这题比较简单,我采用了两种常见的方法来解答: ## 1:dfs(深度优先这题不可取,因为会时间超限87%) `其实这题用dfs的思想十分好理解——最优解型模板(参考[我的博客](https……

1009:数字的处理与判断

摘要:**题目描述:** 给出一个不多于5位的整数,要求 1、求出它是几位数 2、分别输出每一位数字 3、按逆序输出各位数字,例如原数为321,应输出123 **输入格式:** 一个不大于5位的数……

come on兄弟们

摘要:解题思路:注意事项:参考代#include<iostream>#include<stdio.h>#include<cmath>using namespace std;int main(){ doubl……

哥德巴赫猜测

摘要:#include int main() { int n;//输入数据 int i,j; int a[10000];//用来储存2~n之间的素数 int cnt=0,sum=0;……