题解列表

筛选

稍微变化的01背包

摘要:解题思路:看注释注意事项:参考代码:#include<bits/stdc++.h>using namespace std;#define maxn 2010#define maxm 10010int ……

这种题还需要看题解吗?

摘要:解题思路:就循环注意事项:参考代码:for i in range(10,1001):     if i%2==0 and i%3==0 and i%7==0:         print(i)……

不会简单的写法

解题思路:注意事项:参考代码:a=list(map(int,input().split()))b=list(map(int,input().split()))c=0d=0e=0foriina:ifi>=0:d+=ie+=1else:c+=1foriinb:ifi>=0:d+=ie+=1else:c+=

[编程入门]结构体之时间设计

摘要:注意事项:1、从程序的第42行开始,不需要再写12月的代码了,因为第9行循环变量i最大范围是“最大的月份-1“,即12-1=11,不会轮到12月。2、一定要注意程序的第51行要加上一个‘;’,否则会出……