题解列表

筛选

1213: 幸运儿

摘要:```cpp #include using namespace std; int n; bool flag[100]; bool f() { int num=0; fo……

1212: 年会(c++代码)

摘要:```cpp #include #include #ifndef LOCAL #endif constexpr auto Inf=0X3F3F3F3F; typedef long long ……

1210: 小明A+B

摘要:```cpp #include using namespace std; int main() { int t,a,b; cin>>t; for(int i=1;……

1868装包装箱问题 入门贪心算法(注释很详细)

摘要:解题思路:注意到1*1产品的特殊性:不用考虑当前箱内产品的摆放形状,只要有空间就可以见缝插针.又考虑到面积大的产品不是那么灵活,应该要先装入箱内,然后再填充面积小的产品,进而得出贪心规则如代码第一行所……

3001: 整数的和

摘要:```cpp #include using namespace std; int main() { int a,b,c; cin>>a>>b>>c; cout……

3000: 交换值

摘要:```cpp #include using namespace std; int main() { int a,b; cin>>a>>b; cout……

2906: 笨小猴

摘要:```cpp #include #include #include #include using namespace std; bool ZS(int n) { if(nn; ……