编写题解 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 评论 448 浏览 评分:0.0
求自由下落的距离计算(小白无脑直接求的方法) 摘要:解题思路:1.求落地时反弹多高即使用一个for循环,每落地一次即除以2,注意观察题干,是落地时。2.共经过多少米,可以分开来算,第一次落地准备反弹时,经过的路程为1000m,此时M=500m,第二次落…… 题解列表 2021年12月06日 0 点赞 0 评论 416 浏览 评分:0.0
蓝桥杯2015年第六届真题-奇怪的数列 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<string> #include<algorithm> using namespace std; stri…… 题解列表 2021年12月05日 0 点赞 0 评论 349 浏览 评分: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 评论 228 浏览 评分:0.0
1009: [编程入门]数字的处理与判断 摘要:参考代码:#include <stdio.h> #include <string.h> //C语言字符串头文件,strlen() 函数包含在此内 int main() …… 题解列表 2021年12月05日 0 点赞 0 评论 191 浏览 评分:0.0
蓝桥杯2015年第六届真题-密文搜索 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<set> #include<algorithm> #include<string> using names…… 题解列表 2021年12月05日 0 点赞 0 评论 472 浏览 评分:0.0
简单易懂,最简单代码,一起加油 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>typedef struct stu{ int num; struct stu …… 题解列表 2021年12月05日 0 点赞 0 评论 283 浏览 评分:0.0
注意数据溢出,简单易懂 摘要:解题思路:注意事项:数据溢出参考代码:#include<stdio.h>int main(){long int n,s=0,t=1,i;scanf("%ld",&n);for(i=1;i<=n;i++…… 题解列表 2021年12月05日 0 点赞 0 评论 455 浏览 评分:9.9
1095: The 3n + 1 problem简单易懂,值得所有! 摘要:解题思路:注意事项:参考代码:#includeint wan(int n){int d=0; while(n!=1) { if(n%2==0){n/=2;d++;} else if(n%2!=0…… 题解列表 2021年12月05日 0 点赞 0 评论 312 浏览 评分:0.0
母牛的故事(C语言代码)学会了递归后,这是一道简单的递归题目,自然要用简单的写法。 摘要:解题思路:可以先定义fun(n),前3年每年年初生一头小母牛,即n<=3时,第n年就返回n的值; &nb 题解列表 2021年12月05日 0 点赞 0 评论 413 浏览 评分:7.3