蓝桥杯算法提高- c++_ch03_02 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define N 20int main(){ int n,i=0,j=0,k=0,a[N][N]; scanf("%d",&n); …… 题解列表 2018年12月14日 1 点赞 0 评论 1207 浏览 评分:0.0
去掉空格 (C++代码)水 摘要:解题思路: 水水水,利用string参考代码:#include<bits/stdc++.h> using namespace std; int main(){ string kk; …… 题解列表 2018年12月14日 0 点赞 0 评论 824 浏览 评分:0.0
用最简洁的语言! ! !A最辣的题系列之(分糖果) 摘要:#include<stdio.h> int n, e=0, num = 0; int a[100]; //num是老师分下去的糖;e用于计数 & 题解列表 2018年12月13日 1 点赞 0 评论 876 浏览 评分:0.0
用最简洁的语言! ! !A最辣的题之(Gc的苦恼) 摘要: #include<stdio.h> void main() { int a; while (~scanf("%d", &a)){ if (a>74 题解列表 2018年12月13日 1 点赞 1 评论 846 浏览 评分:9.0
蓝桥杯算法提高- c++_ch02_02 (C语言代码) 摘要:解题思路:注意事项:在switch里也可用对应的ASCII码值代替'+'这些参考代码:#include <stdio.h>int main(){ int a,b; ch…… 题解列表 2018年12月13日 1 点赞 0 评论 651 浏览 评分:0.0
蓝桥杯算法训练VIP-整除问题 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int max,min,factor; int i; scanf("%d%d%d",&…… 题解列表 2018年12月13日 2 点赞 0 评论 1122 浏览 评分:0.0
蓝桥杯历届试题-蚂蚁感冒 (C语言代码) 摘要:解题思路:1.用一个变量x记录好感冒蚂蚁 2.首先通过冒泡排序,将蚂蚁的位置排好(包括感冒的) 3.如果感冒蚂蚁在最左边并且 题解列表 2018年12月13日 0 点赞 0 评论 1034 浏览 评分: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 评论 1310 浏览 评分:0.0
蓝桥杯2014年第五届真题-套娃 (C++代码) 摘要:解题思路:并查集吧为毛超时啊??最强召唤魔法,地表最强召唤兽~@地表最强召唤兽注意事项:参考代码:#include <iostream> #include <stdio.h> #include <…… 题解列表 2018年12月13日 1 点赞 5 评论 1258 浏览 评分:6.8
蓝桥杯2013年第四届真题-幸运数 (C++代码)用vector进行筛选 16msAC代码 摘要:解题思路: vector动态数组筛选,速度还可以 16ms通过注意事项: 参考代码:#include <iostream> #include <vector> #define _f…… 题解列表 2018年12月13日 5 点赞 2 评论 935 浏览 评分:9.3