编写题解 2796: 求整数的和与均值 摘要:解题思路:注意事项: 此题需要考虑一行输入和多行输入的情况参考代码:list1 = list(map(int,input().rsplit()))n = list1[0]list1.pop(0)wh…… 题解列表 2023年12月08日 1 点赞 0 评论 1062 浏览 评分:8.4
超级楼梯(Python) 摘要:解题思路:注意事项:参考代码:def super_stair_ways(m): dp = [0] * (m + 1) dp[1] = 1 for i in range(2, m + …… 题解列表 2023年12月08日 0 点赞 0 评论 602 浏览 评分:0.0
大数据因子 带解题思路 摘要:解题思路:注意事项:参考代码:c = int(input()) #输入数据k = [2, 3, 4, 5, 6, 7, 8, 9] #定义K…… 题解列表 2023年12月08日 0 点赞 0 评论 652 浏览 评分:9.9
题解 2908: 白细胞计数 #includeusingnamespacestd;intmain(){intn;doubleo;floatnum=0,a[3000];cin>>n;for(inti=0;i>a[i];sort(a,a+n);for(inti=1;i 题解列表 2023年12月08日 0 点赞 0 评论 500 浏览 评分:0.0
结构体之成绩统计2 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct Stu{ char id[20],name[20]; int score[3],total;};void in…… 题解列表 2023年12月08日 0 点赞 0 评论 480 浏览 评分:9.9
题解 1062: 公约公倍(简单循环) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,n; scanf("%d %d",&m,&n); for(int i=(m<n…… 题解列表 2023年12月08日 0 点赞 0 评论 427 浏览 评分:9.9
Pell数列(Python) 摘要:解题思路:注意事项:参考代码:def pell_number(k): a, b = 1, 2 if k == 1: return 1 elif k == 2: …… 题解列表 2023年12月08日 0 点赞 0 评论 570 浏览 评分:0.0
C语言课后习题 摘要:解题思路:用m,n相互替换一下,当然你也可以只用一个n从0到9再从9到0注意事项:参考代码:#include<stdio.h>int main(){ int n,m; int arr[10…… 题解列表 2023年12月08日 0 点赞 1 评论 426 浏览 评分:9.9
计算字符串距离 摘要:解题思路:注意事项:参考代码:def edit_distance(A, B): m = len(A) n = len(B) # 初始化二维数组 dp = [[0] * (n +…… 题解列表 2023年12月08日 0 点赞 0 评论 470 浏览 评分:0.0
题解 1061: 二级C语言-计负均正 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int count=0,temp=…… 题解列表 2023年12月08日 0 点赞 0 评论 535 浏览 评分:0.0