1050: [编程入门]结构体之成绩记录c语言 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>/* run this program using the console pauser or …… 题解列表 2024年03月18日 0 点赞 0 评论 135 浏览 评分:0.0
[编程入门]利润计算注意前面的计算要进行叠加,,, 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j; scanf("%d",&i); if(i<=100000) j=0.1*i; if(i…… 题解列表 2024年03月18日 0 点赞 0 评论 177 浏览 评分:0.0
2811 救援(C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int n,a,b,c; double t1,t=0.0; s…… 题解列表 2024年03月18日 0 点赞 0 评论 191 浏览 评分:0.0
使用sort,lamba和二维列表,简单易懂 摘要:解题思路:注意事项:参考代码:# 读取输入n = int(input())students = [] # 学生列表,每个元素为一个列表:[学号, 语文成绩, 总成绩]for i in range(n…… 题解列表 2024年03月18日 0 点赞 0 评论 165 浏览 评分:0.0
2812 (C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double a,b,i,c=0; scanf("%lf", &a); b=a; for…… 题解列表 2024年03月18日 0 点赞 0 评论 153 浏览 评分:0.0
java实现哥德巴赫曾猜测凑字数凑字数凑字数凑字数凑字数凑字数 摘要:解题思路:利用欧几里得算法求素数,然后得到素数的列表,然后使用循环求出总结果注意事项:参考代码:import java.util.*; public class Main { publ…… 题解列表 2024年03月18日 0 点赞 0 评论 189 浏览 评分:0.0
2821: 开关灯 摘要:耗时:1小时36分钟参考代码:n, m = map(int, input().split()) arr = [True for _ in range(n + 1)] for i in range(…… 题解列表 2024年03月18日 0 点赞 0 评论 593 浏览 评分:0.0
2822: 求分数序列和 摘要:参考代码:n = int(input()) p, q = 1, 2 sum = 0 for _ in range(n): sum += q / p flag = q …… 题解列表 2024年03月18日 0 点赞 0 评论 242 浏览 评分:0.0
2823: 计算分数加减表达式的值 摘要:参考代码:n = int(input()) sum = 0 for i in range(1, n + 1): if i % 2 == 0: sum -= 1/i …… 题解列表 2024年03月18日 0 点赞 0 评论 444 浏览 评分:0.0
数据结构-Dijskra(迪杰斯特拉)最短路径算法(短代码) 摘要:```cpp #include #include #include using namespace std; const int N = 100; int g[N][N]; int …… 题解列表 2024年03月18日 1 点赞 0 评论 376 浏览 评分:0.0