1433: 蓝桥杯2013年第四届真题-危险系数 摘要: n, m = map(int, input().strip().split()) l = [[0]*n for _ in range(n)] for i in range(…… 题解列表 2021年12月06日 0 点赞 0 评论 610 浏览 评分:0.0
计算1~N之间所有奇数之和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,sum=0; scanf("%d",&n); for(int i=1;i<=n;i++) { …… 题解列表 2021年12月06日 0 点赞 0 评论 433 浏览 评分:0.0
简单A+B,时间相加,C实现 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d", &n); while (n--)//控制多行输出 { int a[6];…… 题解列表 2021年12月06日 0 点赞 0 评论 579 浏览 评分:2.0
1686: 数据结构-定位子串 普通的BF算法 摘要:```c #include #include #define max 100 int BF(char s[], char sub[], int pos); //BF算法 改进->kmp算…… 题解列表 2021年12月06日 0 点赞 0 评论 578 浏览 评分:9.9
蓝桥杯算法训练VIP-连续正整数的和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int i; int s=0; for(i=1;i<n;i++){…… 题解列表 2021年12月06日 0 点赞 0 评论 304 浏览 评分:0.0
题解 1142: C语言训练-立方和不等式 摘要:解题思路:试求满足下述立方和不等式的m的整数解。 1^3+2^3+...+m^3〈=n 本题算法如下: 对指定的n,设置求和循环,从i=1开始,i递增1取值,把i3(或i*i*i)累加到s,直至s>=…… 题解列表 2021年12月06日 0 点赞 0 评论 1138 浏览 评分:9.9
编写题解 1634: 蓝桥杯算法训练VIP-数组查找及替换 C 摘要:解题思路:注意事项:参考代码:#include "stdio.h"void swap(int* a, int* b) { int temp = *a; *a = *b; *b = temp;}void…… 题解列表 2021年12月06日 0 点赞 0 评论 636 浏览 评分:0.0
求自由下落的距离计算(小白无脑直接求的方法) 摘要:解题思路:1.求落地时反弹多高即使用一个for循环,每落地一次即除以2,注意观察题干,是落地时。2.共经过多少米,可以分开来算,第一次落地准备反弹时,经过的路程为1000m,此时M=500m,第二次落…… 题解列表 2021年12月06日 0 点赞 0 评论 613 浏览 评分:0.0
蓝桥杯2015年第六届真题-奇怪的数列 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<string> #include<algorithm> using namespace std; stri…… 题解列表 2021年12月05日 0 点赞 0 评论 423 浏览 评分:0.0
编写题解 1043: [编程入门]三个数字的排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,t; scanf("%d %d %d",&a,&b,&c); if(a>b…… 题解列表 2021年12月05日 0 点赞 0 评论 309 浏览 评分:0.0