结构体之成绩统计2 明了易懂 摘要:解题思路:注意事项:参考代码:n = int(input())s = [] #存放学生数据sum_list = [] #存放每个学生的总分for i in range(n): s.append…… 题解列表 2024年05月20日 0 点赞 0 评论 451 浏览 评分:0.0
c语言训练-求PI* 摘要:解题思路: 需要求的值时 1/1-1/3+1/5-1/7,,,所以规律也很好找,只要1/i的值时大于1E-6的值,那么就一直i=i+2;并让前面的1一直不停的取反就好了.注意事项:参考代码:#incl…… 题解列表 2024年05月20日 0 点赞 0 评论 373 浏览 评分:0.0
C语言训练-求1+2!+3!+...+N!的和 摘要:解题思路:先写出每一个数的阶乘的循环体;在加上一个求和即可;(新手小白)注意事项:必须用longlong参考代码:#include <stdio.h>long long fact(int n) { i…… 题解列表 2024年05月20日 0 点赞 0 评论 533 浏览 评分:9.9
C++结构体之成绩记录 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <algorithm>#include<string>#include<vector> using namespa…… 题解列表 2024年05月20日 0 点赞 0 评论 451 浏览 评分:0.0
StringBuilder实现字符反转拼接 摘要:解题思路:注意事项:参考代码: import java.util.Scanner; &n 题解列表 2024年05月20日 0 点赞 0 评论 355 浏览 评分:0.0
自定义函数之数字后移 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,m; scanf("%d",&n); int a[1010]; int b[1010]; for(…… 题解列表 2024年05月20日 0 点赞 0 评论 329 浏览 评分:0.0
用dijkstra优先队列 摘要:#include #define int long long #define endl '\n' using namespace std; typedef pair PII; const…… 题解列表 2024年05月20日 0 点赞 0 评论 600 浏览 评分:9.9
用调用递归的方法写 摘要:解题思路:S0 = 0 ; S1 = 1*1 = 1!;S2 = 2*1;S3=3*1;...Sn = n*1;注意事项注意递归数值跨越幅度大,搭配的数据类型大小范围要合适,这里我用的是long类型…… 题解列表 2024年05月20日 0 点赞 0 评论 538 浏览 评分:0.0
结构体之成绩记录 简洁易懂 摘要:解题思路:注意事项:参考代码:n = int(input())s = [] # 存放学生记录for i in range(n): s.append(input().split())for i i…… 题解列表 2024年05月19日 0 点赞 0 评论 363 浏览 评分:0.0
铲雪车(snow) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef long long ll;int main(){ ll a,b…… 题解列表 2024年05月19日 0 点赞 0 评论 411 浏览 评分:9.9