1022: [编程入门]筛选N以内的素数 摘要:a=int(input()) ls=[2] for i in range(3,a+1,2): flag=0 for j in ls: if i%j==0: …… 题解列表 2022年06月10日 0 点赞 0 评论 368 浏览 评分:0.0
1022: [编程入门]筛选N以内的素数 摘要:a=int(input()) ls=[2] for i in range(3,a+1,2): flag=0 for j in ls: if i%j==0: …… 题解列表 2022年06月10日 0 点赞 0 评论 293 浏览 评分:0.0
蓝桥杯算法提高vip- 数的划分 -java 摘要:解题思路:按照每组数字划分中最大的数字进行分组11,1 2 1,1,1 2,1 31,1,1,1 2,1,1, 2,2 3,1 41,1,1,1,1 2,1,1,1 2,2,1 …… 题解列表 2022年06月10日 0 点赞 0 评论 337 浏览 评分:0.0
1022: [编程入门]筛选N以内的素数 摘要:#include<stdio.h> int main() { int n; scanf("%d",&n); int i,j,ls[10000]={2},flag,k=1; for(i=3;…… 题解列表 2022年06月10日 0 点赞 0 评论 322 浏览 评分:0.0
编写题解 1001: [编程入门]第一个HelloWorld程序(Python) 摘要:解题思路:只要用Python中print函数就行 注意事项:别把*的数量搞错了参考代码:print("**************************")print("Hello World!")…… 题解列表 2022年06月10日 0 点赞 0 评论 383 浏览 评分:0.0
1177-三角形-递归-java 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; /** * @BelongsProject Demo * @BelongsPackage PACKAGE…… 题解列表 2022年06月10日 0 点赞 0 评论 277 浏览 评分:0.0
1025: [编程入门]数组插入处理 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int ls[9],num[10],k,flag=0,i; for(i=0;i<9;i++){ …… 题解列表 2022年06月10日 0 点赞 0 评论 178 浏览 评分:0.0
1026: [编程入门]数字逆序输出 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int ls[10],i; for(i=0;i<10;i++){ scanf("%d",&l…… 题解列表 2022年06月10日 0 点赞 0 评论 280 浏览 评分:0.0
1027: [编程入门]自定义函数处理最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int lcd(int x,int y){ return x%y==0?y:lcd(y,x%y); } int mai…… 题解列表 2022年06月10日 0 点赞 0 评论 319 浏览 评分:0.0
1030: [编程入门]二维数组的转置(不需用二维数组) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define ch(a,b) a^=b,b^=a,a^=b; int main() { int i,ls[9]; for(…… 题解列表 2022年06月10日 0 点赞 0 评论 249 浏览 评分:0.0