题解列表

筛选

输出亲朋字符串(c++)

摘要:```cpp #include using namespace std; int main(){ string s; getline(cin,s);//此函数可读取整行,包括……

剪刀石头布C++

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

计算球体积(简单C++)

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

蟠桃记(简单C++倒推)

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() {     int t,n,a[88]={1},i;   ……

典型的动态规划

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

典型的分类讨论

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