母牛的故事 (C语言代码) 摘要:解题思路:(参看前三题题解)根据题目条件找出规律;用do-while语句设置开始条件;利用函数设置双重条件;#include<stdio.h>#define N 50int mother_cow[N]…… 题解列表 2018年03月17日 0 点赞 0 评论 590 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.4 (C语言代码) 摘要:#include<stdio.h>int main(){ int a,b,c; scanf("%d%d%d",&a,&b,&c); printf("%d",(a>b?a:b)>c?(a>b?a:b):…… 题解列表 2018年03月17日 0 点赞 0 评论 835 浏览 评分:0.0
小O的质数 (Java代码) 摘要:解题思路: 1. 设一个数为n,若n为非素数,则n存在因子在( 2...sqrt(n) ) (常规解法,速度较快),但循环时依然从2到sqrt(n), 当n较大时,内循环的次数较多。实际…… 题解列表 2018年03月17日 1 点赞 1 评论 605 浏览 评分:0.0
上车人数 (C语言代码) 摘要:解题思路:关键在于设法求出第二站到底上了多少人注意事项:记得在恰当的时候要存值和保留某些变量原有的值参考代码:#include<stdio.h> int main() { int a,n…… 题解列表 2018年03月17日 2 点赞 2 评论 1006 浏览 评分:0.0
人民币问题 (C语言代码) 摘要:解题思路:简单的枚举法注意事项:参考代码:#include<stdio.h> int main() { int money; scanf("%d",&money);//输入面值 …… 题解列表 2018年03月17日 0 点赞 0 评论 1268 浏览 评分:0.0
蓝桥杯算法训练VIP-连续正整数的和 (C++代码) 摘要:解题思路:暴力。注意事项:参考代码:#include<iostream> #include<string.h> #include<algorithm> using namespace std; …… 题解列表 2018年03月17日 0 点赞 0 评论 883 浏览 评分:0.0
小O的数字 (Java代码) 摘要:解题思路: 这题考察 switch, 按数字和行号区分图案即可注意事项:参考代码: import java.util.Scanner; public class C1787 { pu…… 题解列表 2018年03月17日 0 点赞 0 评论 853 浏览 评分:0.0
蓝桥杯算法提高VIP-图形输出 (C++代码) 摘要:解题思路:#include <iostream> #include <iterator> #include <cstdlib> #include <cmath> #include <algor…… 题解列表 2018年03月17日 0 点赞 0 评论 738 浏览 评分:0.0
蓝桥杯历届试题-回文数字 (暴力美学) 摘要:解题思路:分为5位数和6位数注意事项:参考代码:#include <iostream>using namespace std; int num;int huiwen(int i,int j);/* r…… 题解列表 2018年03月17日 0 点赞 0 评论 765 浏览 评分:0.0
蓝桥杯历届试题-核桃的数量 (C语言代码) 摘要:解题思路:实质就是求最小公约数注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,d,t,k; scanf("%d%d%d",&a,&b,&c); d=a…… 题解列表 2018年03月17日 0 点赞 0 评论 640 浏览 评分:0.0