1463: 蓝桥杯基础练习VIP-Sine之舞 摘要:解题思路:注意事项:参考代码:n = int(input()) def an(n): an='' for i in range(1,n+1): …… 题解列表 2022年02月04日 0 点赞 0 评论 297 浏览 评分:0.0
【露离】[编程入门]完数的判断 摘要:解题思路:注意事项:有人不懂为什么因子循环到一半就行,因为完数等于因子之和,两个因子都大于一半,加起来就大于原来的数了,是不可能的参考代码:n=int(input())for x in range(6…… 题解列表 2022年02月04日 0 点赞 4 评论 678 浏览 评分:8.4
排列(题目有漏洞) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[4]={0},i,j,k,l,n; scanf("%d",&n); while(n…… 题解列表 2022年02月04日 0 点赞 0 评论 329 浏览 评分:0.0
编写题解 1016: [编程入门]水仙花数判断 摘要:解题思路:注意事项:参考代码:for x in range(100,1001): flag=0 for i in str(x): flag+=int(i)**3 if …… 题解列表 2022年02月04日 0 点赞 0 评论 395 浏览 评分:0.0
编写题解 1015: [编程入门]求和训练 摘要:解题思路:注意事项:注意最后保留2位小数,格式化输出参考代码:a,b,c=map(int,input().split())a0=b0=c0=0for i in range(1,a+1): a0+…… 题解列表 2022年02月04日 0 点赞 0 评论 355 浏览 评分:0.0
[编程入门]阶乘求和 摘要:解题思路:注意事项:参考代码:n=int(input())sn=0for i in range(1,n+1): b=1 for x in range(1,i+1): b*=x…… 题解列表 2022年02月04日 0 点赞 0 评论 388 浏览 评分:0.0
[STL训练]Let the Balloon Rise 摘要:文章采用的较多的容器,并未使用sort算法。 ```cpp #include #include #include #include #include #include #include…… 题解列表 2022年02月04日 0 点赞 0 评论 447 浏览 评分:9.9
python-平均值计算 摘要:解题思路:列表,列表长度,遍历,注意事项:+=的赋值,遍历范围参考代码:a=list(map(int,input().split()))b=len(a)c=list(a)sum=0for i in r…… 题解列表 2022年02月04日 0 点赞 0 评论 722 浏览 评分:9.9
换位置(找规律) 摘要:解题思路:根据输入数的奇偶性,分别进行判断注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,m; cin>…… 题解列表 2022年02月04日 0 点赞 0 评论 348 浏览 评分:0.0
python-最大比例 摘要:解题思路:我们知道等比数列的递推公式为an=a1*qn-1。ai/aj=qi-j。此处我们就假设最大公比为q,采访的金额数组为A,假设A中有三个不相同的金额,经排序后A中相邻两个数的比值放入数组B中。…… 题解列表 2022年02月04日 0 点赞 0 评论 699 浏览 评分:9.9