题解列表

筛选

典型的动态规划

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

典型的分类讨论

摘要:解题思路:三个方块各自横竖放的情形有2种,也就是一共2*2*2=8种情形。从左到右(因为从下到上等价于8种中的其它情形从左到右)排列方块,接下来就是几个简单的讨论而已。注意事项:参考代码:#inclu……

苹果和虫子(超简单)

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

1160: 出圈(c++)

摘要:```cpp #include using namespace std; int main() { int n,m; while(cin>>n>>m) { ……

1159: 偶数求和

摘要:```cpp #include using namespace std; int main() { int n,m,num[100]; num[0]=2; for……