分段计算 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x; scanf("%d",&x); if(x < 3) printf("%d",2*x); else …… 题解列表 2019年02月26日 0 点赞 0 评论 1030 浏览 评分:0.0
2006年春浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>double fact(int k){ double b=1,sum=0; for(int i=1;i<=k;i++){ b*=i; …… 题解列表 2019年02月26日 0 点赞 0 评论 759 浏览 评分:0.0
汽水瓶 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void main(){ int n,b,c,bb[10],i; for(i=0;i<10;i++){ b=0; scanf("%d…… 题解列表 2019年02月26日 0 点赞 0 评论 602 浏览 评分:0.0
蓝桥杯算法提高VIP-聪明的美食家 (C语言代码) 这个方法仅供玩玩,答案是对的,不能过关 摘要:解题思路:注意事项:参考代码:#include<stdio.h> //这个是方便但是唯一缺陷就是超时 int a[1000],max=0,y; void tian(int t,int n,i…… 题解列表 2019年02月26日 1 点赞 0 评论 706 浏览 评分:0.0
蓝桥杯算法提高VIP-统计单词数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ //输入规划单词 char a[101][21]={0},b[101][2…… 题解列表 2019年02月26日 0 点赞 0 评论 945 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.3 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a, S, y, i, n; scanf("%d %d", …… 题解列表 2019年02月26日 0 点赞 0 评论 469 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题7.1 (C语言代码) 摘要:解题思路:计数为2时为素数。注意事项:参考代码:#include<stdio.h> int main() { int i,i1,n,x=0; scanf("%d",&n); for(i…… 题解列表 2019年02月26日 0 点赞 0 评论 600 浏览 评分:0.0
蓝桥杯2013年第四届真题-买不到的数目 (Java代码) 摘要:import java.util.*; public class Main { static boolean check(int n,int a,int b) { if(n%a == 0 …… 题解列表 2019年02月26日 0 点赞 0 评论 724 浏览 评分:0.0
数字整除 (C++代码) 摘要:解题思路: 用string存储数字,选取最后两位来构造整数,因为整数减法后面的数字不变,仅仅改变最后三位数字而已,注意事项:参考代码:代码一:#include<iostream> using na…… 题解列表 2019年02月26日 0 点赞 0 评论 947 浏览 评分:0.0
蓝桥杯2013年第四届真题-核桃的数量 (C语言代码) 摘要:解题思路:求三个数的最小公倍数注意事项:参考代码:#include <stdio.h> int max(int x,int y) { return x>y?x:y; } int main…… 题解列表 2019年02月26日 0 点赞 0 评论 726 浏览 评分:0.0