c语言小白写法,用struct 摘要:解题思路:注意事项:参考代码:#include <stdio.h>typedef struct student{ int id; float score;} student;int mai…… 题解列表 2023年12月08日 0 点赞 1 评论 367 浏览 评分:0.0
]结构体之成绩记录 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct Stu{ char id[20],name[20]; int score1,score2,score3;};v…… 题解列表 2023年12月08日 0 点赞 0 评论 295 浏览 评分:0.0
1043: [编程入门]三个数字的排序 C语言 冒泡排序 摘要:解题思路:冒泡排序注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS#include <stdio.h>int main(void){ int a, b, c,t; s…… 题解列表 2023年12月08日 0 点赞 0 评论 299 浏览 评分:0.0
题解 1061: 二级C语言-计负均正 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int count=0,temp=…… 题解列表 2023年12月08日 0 点赞 0 评论 395 浏览 评分:0.0
计算字符串距离 摘要:解题思路:注意事项:参考代码:def edit_distance(A, B): m = len(A) n = len(B) # 初始化二维数组 dp = [[0] * (n +…… 题解列表 2023年12月08日 0 点赞 0 评论 334 浏览 评分:0.0
Pell数列(Python) 摘要:解题思路:注意事项:参考代码:def pell_number(k): a, b = 1, 2 if k == 1: return 1 elif k == 2: …… 题解列表 2023年12月08日 0 点赞 0 评论 435 浏览 评分:0.0
题解 2908: 白细胞计数 摘要: #include using namespace std; int main(){ int n; double o; …… 题解列表 2023年12月08日 0 点赞 0 评论 368 浏览 评分:0.0
超级楼梯(Python) 摘要:解题思路:注意事项:参考代码:def super_stair_ways(m): dp = [0] * (m + 1) dp[1] = 1 for i in range(2, m + …… 题解列表 2023年12月08日 0 点赞 0 评论 485 浏览 评分:0.0
移动路线(Python) 摘要:解题思路:注意事项:参考代码:def countRoutes(m, n): dp = [[0] * (n+1) for _ in range(m+1)] # 初始化边界条件 for …… 题解列表 2023年12月08日 1 点赞 0 评论 348 浏览 评分:0.0
输出格式的调整 摘要:1.除法的输出格式需要设置输出一位有效数字,用.1g表示2.前缀“+”表示在正数前面显示符号+,在负数前面显示符号-参考代码:#include<stdio.h> int main() { do…… 题解列表 2023年12月08日 0 点赞 0 评论 487 浏览 评分:0.0