1195: 去掉双斜杠注释 摘要:解题思路:注意事项:参考代码:while True: try: n=input() if n[0]=='/' and n[1]=='…… 题解列表 2022年02月19日 0 点赞 0 评论 393 浏览 评分:0.0
[编程入门]链表合并 摘要:```cpp #include #include typedef struct student{ int id; int score; }student; //链表 …… 题解列表 2022年02月19日 0 点赞 0 评论 491 浏览 评分:0.0
1575: 蓝桥杯算法提高VIP-递归倒置字符数组 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int i=0; char s[8000]; void f(int n) { …… 题解列表 2022年02月19日 0 点赞 0 评论 297 浏览 评分:0.0
编写题解 1204: 大小写转换 摘要:解题思路:注意事项:参考代码:while True: try: a=input() for i in a: 题解列表 2022年02月19日 0 点赞 2 评论 639 浏览 评分:0.0
编写题解 1207: 字符排列问题 摘要:解题思路:注意事项:参考代码:n=int(input()) m=input() ls=[] for i in set(m): ls.append(m.count(i)) s=1 …… 题解列表 2022年02月19日 0 点赞 0 评论 288 浏览 评分:0.0
求解一元二次方程 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>void root(int a,int b,int c){ int p; p=b*b-4*a…… 题解列表 2022年02月19日 0 点赞 0 评论 394 浏览 评分:0.0
母牛的故事(Java代码) 思路清晰 摘要:解题思路:寻找规律,我们发现,前三年数量逐年递增1,随后每年数量是(前第一年牛)的数量加上(前第三年牛)的数量,即满足生产条件的牛进行生产,因此得出a[n]=a[n-1]+a[n-3] (n>=4)注…… 题解列表 2022年02月19日 0 点赞 0 评论 414 浏览 评分:0.0
1013: [编程入门]Sn的公式求和 摘要:解题思路:利用字符串和eval()函数注意事项:参考代码:Sn = 0n = eval(input())for i in range(1, n+1): Sn += eval('2'…… 题解列表 2022年02月20日 0 点赞 0 评论 356 浏览 评分:0.0
题解 1066: 二级C语言-自定义函数 摘要:解题思路:首先将需要的函数定义出来然后主函数先输入两个值,之后求和的话,在两个定义的函数中即可完成主函数,只剩下加减判断这一个任务,根据取余,判断,输出结果即可注意事项:1.输入一个是小数,一个是整数…… 题解列表 2022年02月20日 0 点赞 0 评论 353 浏览 评分:0.0
1015: [编程入门]求和训练 摘要:解题思路:注意事项:参考代码:a, b, c = list(map(int, input().split()))sum1 = 0sum2 = 0sum3 = 0for i in range(1, a+…… 题解列表 2022年02月20日 0 点赞 0 评论 352 浏览 评分:0.0