明明的随机数(Python代码) 3行完事 附解题思路 摘要:## 解题思路: 首先使用 ***列表推导式*** 来进行把 ***input().split()*** 分段后的列表元素转为 **int类型**, 接着使用 ***set()*** 直接转为…… 题解列表 2022年02月23日 0 点赞 0 评论 850 浏览 评分:9.9
周期计算距离 摘要:```python m, n = map(int, input().split()) s = 0 for i in range(1, n + 1): s += m + m / 2 #…… 题解列表 2022年02月23日 0 点赞 0 评论 338 浏览 评分:0.0
不要理解错题目,其实很简单 摘要:解题思路:注意事项: 题目无需输入与输出要在同一行,且目前无法完成退行操作!参考代码:#include<stdio.h>int ma…… 题解列表 2022年02月23日 0 点赞 0 评论 1260 浏览 评分:9.9
冒泡,最不合适的排序算法 摘要:解题思路:冒泡注意事项:比较烦参考代码:#include<stdio.h>int main(){ int arr[3]; int i,j,temp; for(i=0;i<3;i++){ scanf(…… 题解列表 2022年02月23日 0 点赞 0 评论 499 浏览 评分:9.9
不是我在装,这道题目真的很简单(捂脸) 摘要:解题思路:这个属实没啥算法,就是正向按照他说的来注意事项:参考代码:# main height = input().split() h = int(input()) total = 0 f…… 题解列表 2022年02月23日 0 点赞 0 评论 426 浏览 评分:0.0
数的划分c++ 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstdio>#include<algorithm>#include<cmath>#include<cstring>…… 题解列表 2022年02月23日 0 点赞 0 评论 561 浏览 评分:9.9
数的划分c++ 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstdio>#include<algorithm>#include<cmath>#include<cstring>…… 题解列表 2022年02月23日 0 点赞 0 评论 579 浏览 评分:0.0
不是最简单的,但肯定是最容易理解的 摘要:解题思路:一个双重for循环就行了,第一行有特殊规律,先定义好第一行就行了,其余行列位置都其等于右上角的数减1。注意事项:注意循环顺序,要使该位置用右上角的数,而不能使用其左下角的数参考代码:whil…… 题解列表 2022年02月23日 0 点赞 0 评论 690 浏览 评分:9.9
应用函数求解有规律的数列求和 摘要:解题思路:题目描述有一分数序列: 2/1 3/2 5/3 8/5 13/8 21/13...... 求出这个数列的前N项之和,保留两位小数。输入N输出数列前N项和样例输入复制10样例输出复制16.48…… 题解列表 2022年02月23日 0 点赞 0 评论 415 浏览 评分:9.9
自定义函数处理最大公约数与最小公倍数 摘要:解题思路:辗转相除法注意事项:参考代码:#include<stdio.h> int math(int m, int n); int main(void) { int m, n; …… 题解列表 2022年02月23日 0 点赞 0 评论 823 浏览 评分:9.9