题解列表

筛选

简单快捷的代码

摘要:解题思路:想办法输入10个值在对比注意事项:参考代码:int main(){ int arr[10],s; int tem; for(s=1;s<=9;s++) { scanf("%d",&arr[……

二级C语言-自定义函数题解

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>double fact(int n){    double s;    if(n==1)      s=……

五次方数(简单题)

摘要:解题思路:用除十取余法求各个位数,然后就很简单了注意事项:难点在于对于上边界的选取,这里我直接大手一挥,弄了个千万,如果想更快一些的话,可以把他弄小点参考代码:#include <stdio.h>#i……

多重背包问题 python题解

摘要:n,m=map(int,input().split())W=[]V=[]#转化为01背包问题,同时减少重复的数据,降低时间复杂度for i in range(n):    a,b,c=map(int,……

编题的重大bug!!!!!!!!!!!!!!进来看

摘要:解题思路:样例10 1 把自己输出的结果改为99.20就行了。注意事项:参考代码:Scanner c = new Scanner(System.in);double n = c.nextDouble(……

1163: 排队买票

摘要:```cpp #include using namespace std; int a(int a1,int a2) { if(a2==0) return 1; int pro=a……