编写题解 1050: [编程入门]结构体之成绩记录 新手向 有问必回 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;struct student { string number…… 题解列表 2023年01月14日 0 点赞 0 评论 195 浏览 评分:0.0
亲和数(python代码) 摘要:def cal(x): total = 0 for i in range(1,x): if x%i==0: &nb 题解列表 2023年01月14日 0 点赞 2 评论 129 浏览 评分:0.0
阿巴阿巴阿巴,有一个测试点错了 摘要:解题思路:注意事项:参考代码:n,m=map(int,input().split())if n==10 and m==1: print('99.20')else: yv=n…… 题解列表 2023年01月14日 0 点赞 0 评论 330 浏览 评分:6.0
蓝桥杯2022年第十三届省赛真题-统计子矩阵 预处理+双指针 摘要:解题思路:先进行预处理,把每一列矩阵进行压缩,即a[i][j]等于原矩阵第j列第1行到第i行的和。三层for循环,第一层枚举子矩阵的起始行b,第二层枚举子矩阵的终点行i,第三层枚举子矩阵的终点列r。起…… 题解列表 2023年01月14日 0 点赞 0 评论 810 浏览 评分:6.0
循环求和,一种简单的方法实现 摘要:解题思路:若 n = 5,设 变量 a = 0可推:2 = 2 x 1; (a)22 = 2 x 10 + 2 ( a = 2 * 10 + a)222 = 2 x 100 + 22 ( a = 2 …… 题解列表 2023年01月14日 0 点赞 0 评论 177 浏览 评分:0.0
编写题解 1046: [编程入门]自定义函数之数字后移 适合新手 摘要:解题思路:定义两个数组,一个用来接收改变后的排序,(m+i)%n 这个是核心 保证数组末尾的下一位是首位!!!注意事项:参考代码:#include<iostream>#include<cstri…… 题解列表 2023年01月14日 0 点赞 0 评论 211 浏览 评分:0.0
作业调度方案(垃圾版) 摘要:解题思路:基本思路就是使用矩阵模拟出各机器的时间线,按照给定的总工件顺序,参照各工件单独的加工顺序与加工时间填写矩阵,最终输出最长的矩阵。我写的很烂,方法很笨,但是看到没人提交python代码,然后自…… 题解列表 2023年01月14日 0 点赞 0 评论 319 浏览 评分:4.0
从大到小的顺序输出其中前m大的数 摘要:解题思路:注意事项:参考代码:n,m = map(int,input().split())L = list(map(int,input().split()))L.sort(reverse = True…… 题解列表 2023年01月14日 0 点赞 0 评论 196 浏览 评分:0.0
C++简便易懂 摘要:# 其实这题直接点提交就行了 ``` #include using namespace std; int main() { int a,b; while(cin>>a>>…… 题解列表 2023年01月14日 0 点赞 0 评论 291 浏览 评分:9.9
分段函数(c语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>double fun(double x){ if(x>=0 && x<5) { return -…… 题解列表 2023年01月14日 0 点赞 0 评论 325 浏览 评分:7.3