题解 1434: 蓝桥杯历届试题-回文数字 摘要:解题思路:看注释注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin >>n; if(n>54…… 题解列表 2022年02月23日 0 点赞 0 评论 569 浏览 评分:0.0
1738: 排序 (c语言)(!=EOF用法)(解释详细,思路清晰)(代码简短易懂) 摘要:解题思路: 在选择排序外面加一个结束标志,就能实现多组数据的排序,当程序运行时,如果不加" != EOF",那么这个程序就是个死循环,会一直运行下去;加上" != EOF"后该程序就不是死循环了,…… 题解列表 2022年02月23日 0 点赞 2 评论 1667 浏览 评分:9.1
Hello,world! 摘要:```python m = [int(i) for i in input().split()] n = [int(i) for i in input().split()] s = "" for…… 题解列表 2022年02月23日 0 点赞 0 评论 900 浏览 评分:9.9
明明的随机数(Python代码) 3行完事 附解题思路 ##解题思路:首先使用***列表推导式***来进行把***input().split()***分段后的列表元素转为**int类型**,接着使用***set()***直接转为集合进行***去重***操作,转为列表后直接使用***sorted()***来排序再使用***列表推导式***将列表内的元素转为* 题解列表 2022年02月23日 0 点赞 0 评论 972 浏览 评分:9.9
周期计算距离 ```pythonm,n=map(int,input().split())s=0foriinrange(1,n+1):s+=m+m/2#计算落下和弹起的距离,为一个周期m=m/2#下一次落下的高度print('%.2f%.2f'%(m,s-m))``` 题解列表 2022年02月23日 0 点赞 0 评论 455 浏览 评分:0.0
不要理解错题目,其实很简单 摘要:解题思路:注意事项: 题目无需输入与输出要在同一行,且目前无法完成退行操作!参考代码:#include<stdio.h>int ma…… 题解列表 2022年02月23日 0 点赞 0 评论 1392 浏览 评分: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 评论 624 浏览 评分:9.9
不是我在装,这道题目真的很简单(捂脸) 摘要:解题思路:这个属实没啥算法,就是正向按照他说的来注意事项:参考代码:# main height = input().split() h = int(input()) total = 0 f…… 题解列表 2022年02月23日 0 点赞 0 评论 547 浏览 评分:0.0
数的划分c++ 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstdio>#include<algorithm>#include<cmath>#include<cstring>…… 题解列表 2022年02月23日 0 点赞 0 评论 644 浏览 评分:9.9
数的划分c++ 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstdio>#include<algorithm>#include<cmath>#include<cstring>…… 题解列表 2022年02月23日 0 点赞 0 评论 689 浏览 评分:0.0