2832: 第n小的质数 摘要:解题思路:可以定义一个数组用于存放所有小于10000的质数,自定义函数isPrime()这个自定义函数来判断一个数是不是质数,如果是就赋值给数组注意事项:参考代码:#include <iostream…… 题解列表 2023年04月14日 0 点赞 0 评论 479 浏览 评分:0.0
大数据使用数组存储 摘要:解题思路: 注意进位即可 注意事项:无 参考代码: #include <stdio.h> #include <string.h> const int N= 10001; int C[10…… 题解列表 2023年04月14日 0 点赞 0 评论 473 浏览 评分:0.0
2834: 与指定数字相同的数的个数 摘要:解题思路:注意事项:参考代码:#include <iostream> using namespace std; int main(){ //输入第一行 int n; cin>>n; …… 题解列表 2023年04月14日 0 点赞 0 评论 446 浏览 评分:0.0
编写题解 1400: 教学楼的楼梯 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int climbStairs(int n); int main() { int n; int input …… 题解列表 2023年04月14日 0 点赞 0 评论 544 浏览 评分:0.0
暴力枚举求解 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> int main() { int i,j = 0; int n; …… 题解列表 2023年04月14日 0 点赞 0 评论 404 浏览 评分:0.0
2838: 有趣的跳跃 摘要:解题思路:抛砖引玉,欢迎讨论。用最笨的办法,完成题目注意事项:如果水平足够可以直接写代码,如果水平不够就慢慢来,把思路捋清楚,一步一步做测试,最终把代码完成参考代码:#include <iostrea…… 题解列表 2023年04月15日 0 点赞 0 评论 559 浏览 评分:0.0
2920: 分数线划定 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { int m,n,k=0; scanf("%d…… 题解列表 2023年04月15日 0 点赞 0 评论 468 浏览 评分:0.0
编写题解 1490: 蓝桥杯算法提高VIP-五次方数 摘要:解题思路:在2~999999中这个数的每一位的五次方相加最终结果是否等于数本身,是则输出。注意事项:参考代码:#include<iostream> #include<cmath> using na…… 题解列表 2023年04月15日 0 点赞 0 评论 390 浏览 评分:0.0
链表合并排序,之前一直用列表干不下来字典又不会 摘要:解题思路:注意事项:参考代码:a={}b={}n,m=map(int,input().split())for i in range(n): h,s=map(int,input().split()…… 题解列表 2023年04月15日 0 点赞 0 评论 407 浏览 评分:0.0
直接用列表写,但我也不太懂 摘要:解题思路:注意事项:参考代码:n,m=map(int,input().split())lis=[]for i in range(n+m): a,b=map(int,input().split()…… 题解列表 2023年04月15日 0 点赞 0 评论 435 浏览 评分:0.0