求阶梯水费 (C语言代码) 摘要:解题思路:看代码就完事了注意事项:参考代码:#include<stdio.h>int main(){ int x,y; scanf("%d",&x); if(x<15) …… 题解列表 2019年01月26日 6 点赞 0 评论 1449 浏览 评分:0.0
蛇行矩阵 (C++代码) 摘要:解题思路:找规律文通,可以有多种思路。我的是考虑按照数字的增长来的,1的下标为(0,0),总和为0。2 3 的下标为(1,0)和(0,1),总和是1。同理接下来的数字。找到下标的规律之后就可以利用规律…… 题解列表 2019年01月26日 0 点赞 0 评论 676 浏览 评分: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 评论 480 浏览 评分:0.0
字符串的输入输出处理 (Java代码) 摘要:解题思路:注意事项:参考代码: Scanner sc = new Scanner(System.in); String a = sc.nextLine(); String[] s = new S…… 题解列表 2019年01月26日 0 点赞 1 评论 385 浏览 评分:0.0
蓝桥杯算法提高VIP-聪明的美食家 (C++代码) 摘要:解题思路:最长不降序序列参考代码:#include <bits/stdc++.h> using namespace std; #define N 1002 int rec_dp(int a[]…… 题解列表 2019年01月26日 1 点赞 1 评论 1095 浏览 评分:7.3
优质题解 字符序列模式识别 (C语言代码) 摘要:解题思路:这一题一定认真要看清楚题目,我不认真看题就被坑惨了。(题目:试写一个算法,识别字符序列是否为形如‘子序列1&子序列2’模式的字符序列,其中子序列2是子序列1的逆序列,0<子序列字符串长度<1…… 题解列表 2019年01月26日 1 点赞 0 评论 1389 浏览 评分:9.9
蓝桥杯算法提高VIP-选择排序 (C语言代码) 摘要:解题思路:直接用C语言中的选择排序算法,没有用递归实现。注意输出格式中的标点符号即可。参考代码:#include <stdio.h> int main() { int n,t,i,j,k; …… 题解列表 2019年01月26日 3 点赞 1 评论 1853 浏览 评分:9.6
纪念品分组 (C++代码) 摘要:排序 + 贪心#include<iostream> #include<algorithm> #define max_num 30001 using namespace std; int m…… 题解列表 2019年01月26日 0 点赞 0 评论 1333 浏览 评分:7.3
蓝桥杯算法提高VIP-身份证排序 (C++代码) 摘要:解题思路:1.定义一个结构体,把身份证号的日期拆分出来保存到另一个字符数组中。2.注意——希望按出生日期对它们进行从大到小排序,如果有相同日期,则按身份证号码大小进行排序。所以使用STL函数排序时先自…… 题解列表 2019年01月26日 0 点赞 0 评论 2209 浏览 评分:9.9
蓝桥杯算法提高VIP-棋盘多项式 (C++代码)dfs 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>#include<string.h>using namespace std;int n,map[…… 题解列表 2019年01月25日 1 点赞 0 评论 1021 浏览 评分:0.0