利用qsort函数解决超时问题 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int cmp(const void *a,const void *b){ return *(i…… 题解列表 2024年04月15日 0 点赞 0 评论 182 浏览 评分:0.0
题解 1027: [C语言]自定义函数处理最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> #inc…… 题解列表 2024年04月15日 0 点赞 0 评论 177 浏览 评分:0.0
无聊的星期六 摘要:a,n = map(int,input().split()) sum=k=0 for i in range(1,n+1): for j in range(i): sum…… 题解列表 2024年04月15日 0 点赞 0 评论 179 浏览 评分:0.0
暴力算法最优解,简单干脆!!! 摘要:解题思路:输入n,循环1-n之间的数,难点在于求出数的位数,各个位数的求法。然后看各个位数是否满足条件。如果一个数各个位数都满足条件,则该位数满足条件,满足的好数个数加一。注意事项:参考代码:#inc…… 题解列表 2024年04月15日 0 点赞 0 评论 328 浏览 评分:0.0
C语言题解 1046: [编程入门]自定义函数之数字后移 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> #inc…… 题解列表 2024年04月15日 0 点赞 0 评论 133 浏览 评分:0.0
python--study||O.o 摘要:参考代码:n = int(input()) if n == 0: print(0) else: arr = list(map(int, input().split())) …… 题解列表 2024年04月15日 0 点赞 0 评论 458 浏览 评分:0.0
python--study||O.o 摘要:参考代码:c = int(input()) flag = True for i in range(2, 10): if c % i == 0: flag = False…… 题解列表 2024年04月15日 0 点赞 0 评论 528 浏览 评分:0.0
C语言 1635 整数平均值 不用指针数组 摘要:参考代码:#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> #include <ctyp…… 题解列表 2024年04月15日 0 点赞 0 评论 182 浏览 评分:0.0
python 链表删除,巧用reversed() 摘要:#### 简单思路: 由于要求是 *从a链表中删去b链表中有相同学号的那些节点* 所以,为简单处理,直接删除第一个与第二个学生学号相同的相关学生信息。 #### 解题代码: ```pytho…… 题解列表 2024年04月16日 0 点赞 0 评论 208 浏览 评分:0.0
python--study||O.o 摘要:参考代码:n = int(input()) res = 1 for i in range(1, n + 1): res *= i print(res)…… 题解列表 2024年04月16日 0 点赞 0 评论 691 浏览 评分:0.0