蓝桥杯算法提高VIP-任意年月日历输出 (C语言代码) 摘要:难点在于输出格式上qwq,附代码。参考代码:#include <stdio.h> int main(){ int day[] = {0,31,28,31,30,31,30,31,31,30,…… 题解列表 2019年02月11日 2 点赞 2 评论 727 浏览 评分:9.0
通用解法 摘要:解题思路:一看就是常规题,按出现次数统计 类似于统计众数,如: 数组 a[ ] = {1 ,2, 2, 2, 3, 3, 4, 5} ,做运算b[a[i] ]++,则b[a[i] ] <==>b[1…… 题解列表 2019年02月12日 0 点赞 1 评论 1161 浏览 评分:9.0
数据结构-集合union (C语言代码) 摘要:解题思路:都标注了。注意事项:参考代码:#include<stdio.h>int main(){ int len1,len2; int A[250]; int B[150]; …… 题解列表 2019年02月15日 0 点赞 0 评论 749 浏览 评分:9.0
蓝桥杯基础练习VIP-报时助手 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void geshu(int x){ if(x==0)printf("zero"); else if(x==1)printf("one"…… 题解列表 2019年02月20日 1 点赞 0 评论 1521 浏览 评分:9.0
。。提点小问题。。:蓝桥杯算法提高VIP-字符串比较 (C语言代码) 摘要:解题思路:用strcmp字符串比较函数来比较。不能用gets输入,要用%s来输入。因为两个字符串之间是空格隔开的。#include<stdio.h> #include<string.h> int…… 题解列表 2019年02月21日 1 点赞 0 评论 910 浏览 评分:9.0
二叉树 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<bits/stdc++.h>#include<cstring>#include<cmath>#include<cst…… 题解列表 2019年02月26日 0 点赞 0 评论 1719 浏览 评分:9.0
蓝桥杯A矩阵的M次幂- 矩阵乘法 (C/C++语言代码) 摘要:解题思路:矩阵A的M次幂的两种情况:一. 幂M为0 结果为单位矩阵。何为单位矩阵,维基百科讲解的非常好:https://zh.wikipedia.org/wiki/%E5%96%AE%E4%BD%8D…… 题解列表 2019年02月28日 2 点赞 2 评论 1933 浏览 评分:9.0
2.电导流的矩形 (C++代码) 摘要:解题思路: 求含有电针的面积最大的矩形 分为三个问题 1.求一个点是否在一个矩形内 判断x,y是否均在范围内即可 2,求矩形面积 求出长与宽,然后长×宽 3.求一个数组最大值 定义一个…… 题解列表 2019年03月03日 1 点赞 0 评论 748 浏览 评分:9.0
C语言训练-最大数问题 (C语言代码)(骗赞系列一) 摘要:#include<stdio.h> int main() { int a,b,max; scanf("%d",&a); max=a; while(scanf("%d",&a)&&a…… 题解列表 2019年03月09日 1 点赞 2 评论 503 浏览 评分:9.0
拆分位数 (Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[] arg…… 题解列表 2019年03月10日 0 点赞 0 评论 1419 浏览 评分:9.0