You are my brother (C++代码) 摘要:解题思路:有点像并查集,但是这道题更简单,用数组形式表示树,然后比较深度即可。注意事项:参考代码:#include<iostream> using namespace std; int p[200…… 题解列表 2019年04月09日 0 点赞 0 评论 757 浏览 评分:9.9
不容易系列 (C语言代码)(点我有惊喜) 摘要:解题思路:利用while和for循环 注意事项:注意等量关系即可参考代码:#include<stdio.h>int main(void){ int n, a[30],i,sum; scanf("…… 题解列表 2019年04月09日 0 点赞 0 评论 857 浏览 评分:0.0
计算某日在那年中是第几天(注意闰年) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct YMD{ int year; int month; int day;};int main(){ s…… 题解列表 2019年04月09日 0 点赞 0 评论 678 浏览 评分:0.0
1.头疼的工人 (C++代码) 摘要:解题思路:除2取余注意事项:超过100万的数,增加数组的大小。参考代码:#include<iostream>#include<cstdio>using namespace std;int a[20],…… 题解列表 2019年04月09日 1 点赞 0 评论 735 浏览 评分:2.0
【偶数求和】 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[101]; int c[101]; int i,k; int n,m; …… 题解列表 2019年04月09日 0 点赞 0 评论 1017 浏览 评分:0.0
不容易系列 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> #include<string> #include<algorithm> using na…… 题解列表 2019年04月09日 1 点赞 0 评论 842 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.1 (C语言代码) 摘要:解题思路:用递归和更相相减术解决问题注意事项:参考代码:#include<stdio.h>#include<math.h>static int gxxjs(int a, int b);int the_…… 题解列表 2019年04月08日 0 点赞 0 评论 578 浏览 评分:0.0
蓝桥杯历届试题-蚂蚁感冒 (C/C++语言代码) 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <cmath> using namespace std; int main() { int n; …… 题解列表 2019年04月08日 10 点赞 0 评论 1087 浏览 评分:6.0
优质题解 蓝桥杯历届试题-翻硬币 (C/C++代码)规律题 摘要:解题思路:这个题可以暴力求解,但是细微观察一下,题目是有规律可循的:(下面说说的翻转都是指依次翻转两个相邻的位置,同题目中的意思) 就用例子来说吧:0123456789***o***o***o*…… 题解列表 2019年04月08日 21 点赞 8 评论 3739 浏览 评分:9.1