A+B for Input-Output Practice (VII) (C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <cstring>using namespace std;int main(){ int a,b; while(c…… 题解列表 2017年11月27日 0 点赞 0 评论 1445 浏览 评分:9.9
数列 (C语言代码) 摘要:解题思路:找到规律是这道题目的关键。当k=3时,数列为 1 3 4 9 10 12 13 27 28 30 31 36 37 40 ... …… 题解列表 2017年11月27日 4 点赞 6 评论 2176 浏览 评分:9.9
汪汪与打针 (C++代码) 摘要:大家注意最多只能打4针,而且题目问的是能按时打针的次数,所以要注意#include<iostream> using namespace std; int main() { int a,b; …… 题解列表 2017年11月28日 2 点赞 0 评论 1638 浏览 评分:9.9
矩形面积交 (C语言代码) 摘要:/* 矩形面积交;我们把x轴和y轴分开思考,画出一两个图就会发现如何找; %f和%lf分别是float类型和double类型用于格式化输入输出时对应的格式符号。 其中: float,单精度浮点…… 题解列表 2017年12月01日 1 点赞 3 评论 2173 浏览 评分:9.9
三角形 (C语言代码) 摘要:解题思路:这其实动态规划算法的一道 入门入门入门 级的题,又称为数塔。解法就是从下往上,两两比较,以样例为例。最下面的4 5 2 6,先4和5比较,二者间大的数与上面的2相加。依次类推。比较规整的代码…… 题解列表 2017年12月01日 3 点赞 2 评论 2097 浏览 评分:9.9
最小公倍数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(void){ int n,i,m,x; scanf("%d%d",&m,&n); if(m>=n)…… 题解列表 2017年12月01日 0 点赞 0 评论 2045 浏览 评分:9.9
核桃的数量 (C语言代码) 摘要:解题思路:就是找3个数的公倍数注意事项:参考代码:#include<stdio.h>void main(){int a,b,c,i;scanf("%d%d%d",&a,&b,&c);for(i=1;;…… 题解列表 2017年12月04日 0 点赞 0 评论 1360 浏览 评分:9.9
Minesweeper (C语言代码) 摘要:解题思路:因为本人比较喜欢玩扫雷,所以就写了这篇题解哈哈。我的做法就是,读入雷区后把非雷的格子赋0,对雷区进行遍历,以每一个格子为中心,找其周围的8个格(有时候3个格或5个格),如果有雷,该格自加。注…… 题解列表 2017年12月07日 3 点赞 0 评论 1318 浏览 评分:9.9
孤独的骑士 (C语言代码) 摘要:解题思路:分情况讨论注意事项:参考代码:#include <stdio.h>int main(void){ int i, n, x, y, count; char c; scanf("%d", &n)…… 题解列表 2017年12月09日 0 点赞 0 评论 1229 浏览 评分:9.9
WU-蓝桥杯基础练习VIP-龟兔赛跑预测 (C++代码) 摘要:从时间的角度来考虑问题参考代码:#include<iostream> using namespace std; int main() { int v1,v2,t,s,l; while…… 题解列表 2017年12月22日 4 点赞 0 评论 1305 浏览 评分:9.9