明明的随机数 (Java代码) 摘要:import java.util.Arrays; import java.util.HashSet; import java.util.Scanner; public class Main …… 题解列表 2022年02月04日 0 点赞 0 评论 347 浏览 评分:9.9
(c语言)哥德巴赫曾猜测 摘要:```c //思路:先求出2到n的素数并保存在数组中,之后直接对数组元素进行判断即可 #include int a[10000]={0};//定义一个足够大的数组 int fun(int n…… 题解列表 2022年02月04日 0 点赞 0 评论 344 浏览 评分:0.0
python-水仙花数-问题2 摘要:解题思路:从100到1000内的水仙花数注意事项:参考代码:num=100while(num<1000): g=int(num%10)#个位 s=int(num/10%10)#十位 …… 题解列表 2022年02月04日 0 点赞 0 评论 445 浏览 评分:9.9
1463: 蓝桥杯基础练习VIP-Sine之舞 摘要:解题思路:注意事项:参考代码:n = int(input()) def an(n): an='' for i in range(1,n+1): …… 题解列表 2022年02月04日 0 点赞 0 评论 270 浏览 评分:0.0
【露离】[编程入门]完数的判断 摘要:解题思路:注意事项:有人不懂为什么因子循环到一半就行,因为完数等于因子之和,两个因子都大于一半,加起来就大于原来的数了,是不可能的参考代码:n=int(input())for x in range(6…… 题解列表 2022年02月04日 0 点赞 4 评论 652 浏览 评分: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 评论 293 浏览 评分: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 评论 357 浏览 评分: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 评论 330 浏览 评分: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 评论 353 浏览 评分:0.0
[STL训练]Let the Balloon Rise 摘要:文章采用的较多的容器,并未使用sort算法。 ```cpp #include #include #include #include #include #include #include…… 题解列表 2022年02月04日 0 点赞 0 评论 410 浏览 评分:9.9