蓝桥杯算法训练VIP-链表数据求和操作 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<malloc.h>#define I sizeof(struct a)struct a{ int s; int x; …… 题解列表 2021年10月23日 0 点赞 0 评论 556 浏览 评分:9.9
蓝桥杯算法提高VIP-复数求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<malloc.h> #include<stdlib.h> #define I sizeof(struct a)…… 题解列表 2021年10月23日 0 点赞 0 评论 377 浏览 评分:9.9
[编程入门]猴子吃桃的问题(简单的递归)【C语言】 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int func(int n){ if(n==1) return 1; else return(func(n-1)+1)*2;}//函数…… 题解列表 2021年10月23日 0 点赞 0 评论 507 浏览 评分:9.9
巧用sort解题 摘要:解题思路: 1、首先要创建两个链表,并且给数值域赋值; 2、重要的是排序,STL里有sort函数能对结构体进行排序,因为是链表,无法调用sort排序 …… 题解列表 2021年10月23日 0 点赞 0 评论 523 浏览 评分:9.9
1137: C语言训练-求函数值-题解(python) 摘要:解题思路:注意事项:参考代码:a = int(input())def func1(x): if x == 1: y = 10 print(y) else: …… 题解列表 2021年10月23日 0 点赞 0 评论 599 浏览 评分:6.0
1129: C语言训练-排序问题<2>-题解(python) 摘要:解题思路:注意事项:参考代码:l = list(map(int,input().split()))l.sort()for i in l[::-1]: print(i,end=' '…… 题解列表 2021年10月22日 0 点赞 0 评论 287 浏览 评分:0.0
1126: C语言训练-字符串正反连接-题解(python) 摘要:解题思路:字符串切片的使用注意事项:参考代码:a = input()b = a[::-1]c = a+bprint(c)…… 题解列表 2021年10月22日 0 点赞 0 评论 496 浏览 评分:9.9
1064: 二级C语言-阶乘数列-题解(python) 摘要:解题思路:注意事项:参考代码:n = 30s = 1m = 0for i in range(n,0,-1): for j in range(1,i+1): s *= j m …… 题解列表 2021年10月22日 0 点赞 0 评论 238 浏览 评分:0.0
1133: C语言训练-求1+2!+3!+...+N!的和-题解(python) 摘要:解题思路:注意事项:参考代码:n = int(input())s = 1m = 0for i in range(n,0,-1): for j in range(1,i+1): s …… 题解列表 2021年10月22日 0 点赞 0 评论 652 浏览 评分:0.0
编写题解 1012: [编程入门]字符串分类统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a[200]; int i; int c=0,v=0,b=0,n=0; for(i=0;i<=20…… 题解列表 2021年10月22日 0 点赞 0 评论 519 浏览 评分:9.9