题解列表

筛选

求整数的和与均值(Python)

摘要:解题思路:    这个就是有一种情况是 输入没有按照一行一个数比如说按照:3 12 54 35 这样的输入情况,考虑这个情况之后就满分了,所以说我个人感觉这个和题目描述的有一点不一样,所以说题目有一点……

陶陶摘苹果

摘要:解题思路:通过两个for循环来完成注意事项:参考代码:#include <iostream>using namespace std;int main() { int a[10]; for (int i……

c语言小白写法,用struct

摘要:解题思路:注意事项:参考代码:#include <stdio.h>typedef struct student{    int id;    float score;} student;int mai……

]结构体之成绩记录

摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct Stu{    char id[20],name[20];    int score1,score2,score3;};v……

题解 1061: 二级C语言-计负均正

摘要:解题思路:注意事项:参考代码:#include<stdio.h>                                    int main(){    int count=0,temp=……

计算字符串距离

摘要:解题思路:注意事项:参考代码:def edit_distance(A, B):    m = len(A)    n = len(B)    # 初始化二维数组    dp = [[0] * (n +……

Pell数列(Python)

摘要:解题思路:注意事项:参考代码:def pell_number(k):    a, b = 1, 2    if k == 1:        return 1    elif k == 2:     ……