题解列表

筛选

You are my brother (C++代码)

摘要:解题思路:有点像并查集,但是这道题更简单,用数组形式表示树,然后比较深度即可。注意事项:参考代码:#include<iostream> using namespace std; int p[200……

1.头疼的工人 (C++代码)

摘要:解题思路:除2取余注意事项:超过100万的数,增加数组的大小。参考代码:#include<iostream>#include<cstdio>using namespace std;int a[20],……

【偶数求和】 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a[101];    int c[101];    int i,k;    int n,m;   ……

不容易系列 (C++代码)

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> #include<string> #include<algorithm>  using na……
优质题解

蓝桥杯历届试题-翻硬币 (C/C++代码)规律题

摘要:解题思路:这个题可以暴力求解,但是细微观察一下,题目是有规律可循的:(下面说说的翻转都是指依次翻转两个相邻的位置,同题目中的意思)    就用例子来说吧:0123456789***o***o***o*……