题解列表

筛选

1165: 明明的随机数

摘要:```cpp #include using namespace std; int main() { int a,s1[100],s2[100],s=0,x=1,j; cin……

1164: 数组的距离

摘要:```cpp #include #include using namespace std; struct number { int value,flag; }; int mai……

1163: 排队买票

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

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

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

多重背包问题 python题解

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

五次方数(简单题)

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