蓝桥杯基础练习VIP-报时助手 (C++代码) 摘要:解题思路:确定好小时的范围,分钟的范围,整一个switch循环期待更简洁的代码!!!!参考代码:#include <iostream>using namespace std;void display(…… 题解列表 2019年01月26日 0 点赞 0 评论 750 浏览 评分:4.0
【排队买票】 (C语言代码)全排列问题 摘要:参考代码:#include<stdio.h> #include<stdlib.h> int m,n,k; int cnt=0; void perm(int*,int); int ma…… 题解列表 2019年01月26日 0 点赞 0 评论 1101 浏览 评分:9.9
求阶梯水费 (C语言代码) 摘要:解题思路:看代码就完事了注意事项:参考代码:#include<stdio.h>int main(){ int x,y; scanf("%d",&x); if(x<15) …… 题解列表 2019年01月26日 6 点赞 0 评论 1291 浏览 评分:0.0
蛇行矩阵 (C++代码) 摘要:解题思路:找规律文通,可以有多种思路。我的是考虑按照数字的增长来的,1的下标为(0,0),总和为0。2 3 的下标为(1,0)和(0,1),总和是1。同理接下来的数字。找到下标的规律之后就可以利用规律…… 题解列表 2019年01月26日 0 点赞 0 评论 544 浏览 评分:0.0
蛇行矩阵 (Java代码) 摘要:解题思路:注意事项:参考代码:public static int f(int m) { if(m==0) return 1; return f(m-1)+m; } public …… 题解列表 2019年01月26日 0 点赞 0 评论 356 浏览 评分:0.0
字符串的输入输出处理 (Java代码) 摘要:解题思路:注意事项:参考代码: Scanner sc = new Scanner(System.in); String a = sc.nextLine(); String[] s = new S…… 题解列表 2019年01月26日 0 点赞 1 评论 291 浏览 评分:0.0
蓝桥杯算法提高VIP-聪明的美食家 (C++代码) 摘要:解题思路:最长不降序序列参考代码:#include <bits/stdc++.h> using namespace std; #define N 1002 int rec_dp(int a[]…… 题解列表 2019年01月26日 1 点赞 1 评论 869 浏览 评分:7.3
优质题解 字符序列模式识别 (C语言代码) 摘要:解题思路:这一题一定认真要看清楚题目,我不认真看题就被坑惨了。(题目:试写一个算法,识别字符序列是否为形如‘子序列1&子序列2’模式的字符序列,其中子序列2是子序列1的逆序列,0<子序列字符串长度<1…… 题解列表 2019年01月26日 1 点赞 0 评论 1137 浏览 评分:9.9
蓝桥杯算法提高VIP-选择排序 (C语言代码) 摘要:解题思路:直接用C语言中的选择排序算法,没有用递归实现。注意输出格式中的标点符号即可。参考代码:#include <stdio.h> int main() { int n,t,i,j,k;…… 题解列表 2019年01月26日 3 点赞 1 评论 1380 浏览 评分:9.6
纪念品分组 (C++代码) 摘要:排序 + 贪心#include<iostream> #include<algorithm> #define max_num 30001 using namespace std; int m…… 题解列表 2019年01月26日 0 点赞 0 评论 957 浏览 评分:7.3