编写题解 3012: 分苹果 摘要:解题思路:注意事项:参考代码:n=int(input())apple=0for i in range(1,n+1): apple+=iprint(apple)…… 题解列表 2024年03月01日 0 点赞 0 评论 189 浏览 评分:0.0
2787: 有一门课不及格的学生 摘要:参考代码:#include<iostream> using namespace std; int main() { int a, b; cin >> a >> b; …… 题解列表 2024年03月01日 0 点赞 0 评论 796 浏览 评分:0.0
编写题解 3014: 计算星期几 摘要:解题思路:7天一个周期,对7求余即可得到与今天的 星期间隔,再加上原来的星期几(q),就是多少天后的星期几注意事项:若今天是星期2,把q改成2参考代码:a,b=map(int,input().sp…… 题解列表 2024年03月01日 0 点赞 0 评论 236 浏览 评分:0.0
####题解 1273: ISBN码:直观的做法---python 摘要:解题思路:因为ISBN码长度是固定的,并且明确说明了用哪几位的下标进行计算,可以直接建立索引列表 注意事项:参考代码:isbn = input() sum = 0 cor = [0, 2…… 题解列表 2024年03月01日 0 点赞 0 评论 192 浏览 评分:0.0
多用数学思想考虑考虑,EZ,收徒 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int max,min,e; int a,b; …… 题解列表 2024年03月01日 0 点赞 0 评论 263 浏览 评分:0.0
简单素数法筛选素数 摘要:```c #include //定义判断是否是素数的函数 int isprime(int x){ int i; for(i=2;i…… 题解列表 2024年03月01日 0 点赞 0 评论 187 浏览 评分:0.0
编写题解 3015: 幂的末尾 摘要:解题思路:注意事项:参考代码:a,b=map(int,input().split())c=pow(a,b)d=c%1000print(f'{d:0>3d}')…… 题解列表 2024年03月01日 0 点赞 0 评论 209 浏览 评分:0.0
选择排序算法实现 摘要: ```c #include //寻找最大值最小值以及索引位置 void search(int i,int j,int *min,int *max,int arr[],int *indi,…… 题解列表 2024年03月01日 0 点赞 0 评论 235 浏览 评分:0.0
编写题解 3016: 第几项 摘要:解题思路:利用循环,满足条件 break,跳出循环注意事项:m,n为正整数,当m=1时,range(1,1)不起作用参考代码:m=int(input())s=0#加和for n in range(1,…… 题解列表 2024年03月02日 0 点赞 0 评论 178 浏览 评分:0.0
蓝桥杯历届试题-回文数字 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int n; int dight[6]; bool judge(int …… 题解列表 2024年03月02日 0 点赞 0 评论 212 浏览 评分:0.0