题解列表

筛选

题目 3034: 自然数的拆分

摘要:算法介绍:        本题使用的算法为深度优先搜索算法(Depth-First-Search,DFS),该算法所遵循的策略如同名字一样,讲究一个“深”字,就是尽可能深的去搜锁所有的节点,直到把所有……

题解 2776: A*B问题

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

题解 2772: 苹果和虫子

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

编写题解 2772: 苹果和虫子

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

编写题解 2918: 成绩排序

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; struct u {     int k;     string s……

2991: 八进制到十进制

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

题解 2771: 大象喝水

摘要:解题思路:首先输入高和半径,然后求体积,再用20L除以体积。注意事项:在这里pi=3.14159。参考代码:#include <bits/stdc++.h>using namespace std;in……