二级C语言-自定义函数 摘要:#include double fact(double n) { int i; double sum=1.0; for(i=1;i<=n;i++) s…… 题解列表 2021年12月01日 0 点赞 0 评论 429 浏览 评分:9.9
猴子吃桃问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i; scanf("%d",&n); int t=1; for(i=1;i…… 题解列表 2021年12月01日 0 点赞 2 评论 471 浏览 评分:9.9
1434: 蓝桥杯历届试题-回文数字 摘要: n = int(input().strip()) c =0 def huiwen(s): for i in range(len(s)//2): …… 题解列表 2021年12月01日 0 点赞 0 评论 686 浏览 评分:9.9
链表合并(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;struct student{ int id; int score; student *nex…… 题解列表 2021年12月01日 0 点赞 0 评论 675 浏览 评分:9.9
编写题解 1513: 蓝桥杯算法提高VIP-大数加法(C语言--带注释) 摘要:解题思路:注意事项:参考代码:#include#include//比较大小函数 int max(int a,int b){ return a > b ? a : b;}int main()…… 题解列表 2021年12月01日 0 点赞 0 评论 690 浏览 评分:9.9
蓝桥杯算法提高VIP-排队打水问题 摘要:解题思路:将每个人的打水时间进行排序,根据水龙头个数进行分组,然后每次记录等待时间+打水时间即可。(由于每人打水时间不同,因此排序后分组可以确保x结束时y也正好结束或者y在x之前结束。其中,Tx < …… 题解列表 2021年12月01日 0 点赞 0 评论 964 浏览 评分:9.9
二级C语言-阶乘公式求职 摘要:#include <stdio.h> double fack(int k) { int i; double sum=1.0; for(i=1;i<=k;i++) …… 题解列表 2021年12月02日 0 点赞 2 评论 876 浏览 评分:9.9
数字逆序输出的写法 摘要:解题思路: 一次输入10个数字,则定义一个数组元素为10的数组;后利用从右往左递降输出即可注意事项:数组长度为10,所以数组下标从0开始参考代码:#include<stdio.h>int m…… 题解列表 2021年12月02日 0 点赞 0 评论 973 浏览 评分:9.9
自定义函数之数字后移 摘要:解题思路:在后移之前先把后面需要移掉的保存在数组之中,然后再进行后移,每次后移只进行一次,然后使用循环达到我们需要后移的位数。后移完成之后再把移掉的重新赋值给原数组注意事项:在后移的时候需要每次都后移…… 题解列表 2021年12月02日 0 点赞 0 评论 497 浏览 评分:9.9
字符串的对比(超简单的c方法 摘要:###所以为什么strcasecmp这个函数可以通过 ###但是stricmp和strcmpi不行呢 ###直接调用几个字符串的函数就好 ```c #include #includ…… 题解列表 2021年12月03日 0 点赞 0 评论 518 浏览 评分:9.9