蓝桥杯算法提高- c++_ch02_02 (C语言代码) 摘要:解题思路:注意事项:在switch里也可用对应的ASCII码值代替'+'这些参考代码:#include <stdio.h>int main(){ int a,b; ch…… 题解列表 2018年12月13日 1 点赞 0 评论 549 浏览 评分:0.0
蓝桥杯算法训练VIP-整除问题 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int max,min,factor; int i; scanf("%d%d%d",&…… 题解列表 2018年12月13日 2 点赞 0 评论 965 浏览 评分:0.0
蓝桥杯历届试题-蚂蚁感冒 (C语言代码) 摘要:解题思路:1.用一个变量x记录好感冒蚂蚁 2.首先通过冒泡排序,将蚂蚁的位置排好(包括感冒的) 3.如果感冒蚂蚁在最左边并且 题解列表 2018年12月13日 0 点赞 0 评论 869 浏览 评分:0.0
蓝桥杯基础练习VIP-分解质因数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int fun(int n){ int i; printf("%d=",n); for(i=2;i<…… 题解列表 2018年12月13日 0 点赞 0 评论 1050 浏览 评分:0.0
蓝桥杯2014年第五届真题-套娃 (C++代码) 摘要:解题思路:并查集吧为毛超时啊??最强召唤魔法,地表最强召唤兽~@地表最强召唤兽注意事项:参考代码:#include <iostream> #include <stdio.h> #include <…… 题解列表 2018年12月13日 1 点赞 5 评论 1197 浏览 评分:6.8
蓝桥杯2013年第四届真题-幸运数 (C++代码)用vector进行筛选 16msAC代码 摘要:解题思路: vector动态数组筛选,速度还可以 16ms通过注意事项: 参考代码:#include <iostream> #include <vector> #define _f…… 题解列表 2018年12月13日 5 点赞 2 评论 886 浏览 评分:9.3
C语言程序设计教程(第三版)课后习题7.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int q,w,e,r,t,y,u,i,o,p; scanf ("%d %d %d %d %d %d…… 题解列表 2018年12月13日 1 点赞 0 评论 545 浏览 评分:0.0
蓝桥杯算法训练VIP-整数平均值 (C语言代码) 摘要:解题思路:注意事项: 在函数内部使用指针操纵数组元素参考代码:#include <stdio.h>int main(){ int n, i; scanf("%d", &n); int a[100…… 题解列表 2018年12月13日 2 点赞 0 评论 1462 浏览 评分:5.2
C二级辅导-等差数列 (C语言代码) 摘要:解题思路:注意事项:参考代码:{ int num=2; int i,n; int sum=0; scanf("%d",&n); for(i=1;i<=n;i++) { sum=sum+num; …… 题解列表 2018年12月13日 6 点赞 1 评论 1176 浏览 评分:6.0
C二级辅导-分段函数 (C语言代码) 摘要:解题思路:注意事项:参考代码:{ int num; scanf("%d",&num); if(num<1) { printf("%.2f",(float)num); } if(num>=1 && n…… 题解列表 2018年12月13日 3 点赞 0 评论 475 浏览 评分:0.0