典型的分类讨论 解题思路:三个方块各自横竖放的情形有2种,也就是一共2*2*2=8种情形。从左到右(因为从下到上等价于8种中的其它情形从左到右)排列方块,接下来就是几个简单的讨论而已。注意事项:参考代码:#includeusingnamespacestd;#definefirfirst# 题解列表 2022年11月05日 0 点赞 0 评论 1617 浏览 评分:7.5
奥运奖牌计数(超简单,很容易看懂) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int n,a,b,c; int a1=0,b1=0,c1=0…… 题解列表 2022年11月05日 0 点赞 0 评论 1175 浏览 评分:8.7
苹果和虫子(超简单) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n, x, y; cin >> n >> x >>…… 题解列表 2022年11月05日 0 点赞 0 评论 684 浏览 评分:6.0
1160: 出圈(c++) 摘要:```cpp #include using namespace std; int main() { int n,m; while(cin>>n>>m) { …… 题解列表 2022年11月05日 0 点赞 0 评论 701 浏览 评分:9.9
1159: 偶数求和 ```cpp#includeusingnamespacestd;intmain(){intn,m,num[100];num[0]=2;for(inti=1;i 题解列表 2022年11月05日 0 点赞 0 评论 669 浏览 评分:0.0
无语数据结构-广义表的基本操作 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <stack>using namespace std;int main(){ stack<char> s; …… 题解列表 2022年11月04日 0 点赞 0 评论 620 浏览 评分:9.9
1828: 蓝桥杯2015年第六届真题-密文搜索暴力搜索 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;char s[20000];bool fx(char* s1, char* s2) …… 题解列表 2022年11月04日 0 点赞 0 评论 638 浏览 评分:9.9
编写题解 1206: 字符串问题(最短) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ string a;//定义 cin>>a;//输出 …… 题解列表 2022年11月04日 0 点赞 0 评论 590 浏览 评分:0.0
C++求一个闭区间内所有素数和 摘要:解题思路:注意事项:注意1不是素数,在判断是要注意参考代码:#include<iostream>using namespace std;bool check(int i)////用来检验一个数是否是素…… 题解列表 2022年11月04日 0 点赞 0 评论 561 浏览 评分:9.9
2908: 白细胞计数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main(){ int n; float num=0; …… 题解列表 2022年11月04日 0 点赞 0 评论 995 浏览 评分:6.4