简单A+B,时间相加,C实现 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d", &n); while (n--)//控制多行输出 { int a[6];…… 题解列表 2021年12月06日 0 点赞 0 评论 608 浏览 评分: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 评论 614 浏览 评分: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 评论 332 浏览 评分: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 评论 1162 浏览 评分: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 评论 689 浏览 评分:0.0
求自由下落的距离计算(小白无脑直接求的方法) 摘要:解题思路:1.求落地时反弹多高即使用一个for循环,每落地一次即除以2,注意观察题干,是落地时。2.共经过多少米,可以分开来算,第一次落地准备反弹时,经过的路程为1000m,此时M=500m,第二次落…… 题解列表 2021年12月06日 0 点赞 0 评论 669 浏览 评分:0.0
蓝桥杯2015年第六届真题-奇怪的数列 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<string> #include<algorithm> using namespace std; stri…… 题解列表 2021年12月05日 0 点赞 0 评论 454 浏览 评分: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 评论 325 浏览 评分:0.0
1009: [编程入门]数字的处理与判断 摘要:参考代码:#include <stdio.h> #include <string.h> //C语言字符串头文件,strlen() 函数包含在此内 int main() …… 题解列表 2021年12月05日 0 点赞 0 评论 301 浏览 评分:0.0
蓝桥杯2015年第六届真题-密文搜索 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<set> #include<algorithm> #include<string> using names…… 题解列表 2021年12月05日 0 点赞 0 评论 606 浏览 评分:0.0