编写题解 1671: 小九九【C语言】 摘要:解题思路:注意事项:注意最后一个输出是%-2d 就好了(%-2d后有空格)参考代码:#include<stdio.h>int main(){ int i,j,sum; for(i=1;i<=9;i++…… 题解列表 2021年10月23日 0 点赞 0 评论 1512 浏览 评分:8.0
蓝桥杯算法训练VIP-链表数据求和操作 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<malloc.h>#define I sizeof(struct a)struct a{ int s; int x; …… 题解列表 2021年10月23日 0 点赞 0 评论 634 浏览 评分:9.9
蓝桥杯算法提高VIP-复数求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<malloc.h> #include<stdlib.h> #define I sizeof(struct a)…… 题解列表 2021年10月23日 0 点赞 0 评论 411 浏览 评分: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 评论 558 浏览 评分:9.9
巧用sort解题 摘要:解题思路: 1、首先要创建两个链表,并且给数值域赋值; 2、重要的是排序,STL里有sort函数能对结构体进行排序,因为是链表,无法调用sort排序 …… 题解列表 2021年10月23日 0 点赞 0 评论 563 浏览 评分:9.9
1137: C语言训练-求函数值-题解(python) 摘要:解题思路:注意事项:参考代码:a = int(input())def func1(x): if x == 1: y = 10 print(y) else: …… 题解列表 2021年10月23日 0 点赞 0 评论 674 浏览 评分: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 评论 346 浏览 评分:0.0
1126: C语言训练-字符串正反连接-题解(python) 摘要:解题思路:字符串切片的使用注意事项:参考代码:a = input()b = a[::-1]c = a+bprint(c)…… 题解列表 2021年10月22日 0 点赞 0 评论 539 浏览 评分: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 评论 271 浏览 评分: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 评论 700 浏览 评分:0.0