1014: [编程入门]阶乘求和 摘要:解题思路:当n=1时:sn=1*1当n=2时:sn=1*1 + 1*2当n=3时,sn=1*1 + 1*2 + 1*2*3当n=4时,sn=1*1 + 1*2*3 + 1*2*3*4......我们可…… 题解列表 2023年01月09日 0 点赞 0 评论 261 浏览 评分:9.9
3018: 末两位数 摘要:```cpp #include using namespace std; int main() { int n,m=1; cin>>n; for(int i=1;…… 题解列表 2023年01月09日 0 点赞 0 评论 450 浏览 评分:9.9
2929: 网线主管 摘要:解题思路:此题应运用二分答案 1.输入n,k; 2.输入每条网线的长度(给每个网线乘100变成整数); 3.在写一个while循环进行二分答案; 先定义两个数l,r分别代表最小值和最大值; …… 题解列表 2023年01月09日 0 点赞 0 评论 394 浏览 评分:9.9
1366超级书架2 中等贪心算法(注释很详细) 摘要:这道题其实挺简单的,不知道为什么设置成中等难度//贪心规则:每次选最高的奶牛就是了 #include<bits/stdc++.h> using namespace std; int …… 题解列表 2023年01月09日 0 点赞 0 评论 327 浏览 评分:9.9
2929: 网线主管 摘要:解题思路:难点:此题难点为有小数,所以在输入时要先乘一个十,再进行二分答案。 解题过程 { 1.输入。(并转换成为整数) 2.while循环进行二分答案。 { …… 题解列表 2023年01月09日 1 点赞 0 评论 412 浏览 评分:9.9
【Python题解】蓝桥杯算法训练VIP-阶乘 摘要:解题思路:见代码注释参考代码:n = int(input()) def func(num): # 返回最右侧的非0值 s = str(num) for i in s[:…… 题解列表 2023年01月09日 0 点赞 0 评论 294 浏览 评分:9.9
二级C语言-计算素数和(水题) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int isprime(int n){ int i; if(n<2) return 0; for(i=2;i<n;i++){ if(…… 题解列表 2023年01月09日 0 点赞 0 评论 360 浏览 评分:9.9
二级C语言-进制转换(水题) 摘要:#include int main(){ int n,a[100],r,k=0; scanf("%d",&n); do{ r=n%8; n=n/8; a[k]=r…… 题解列表 2023年01月09日 0 点赞 0 评论 352 浏览 评分:9.9
3020: 最大数位置 摘要:```cpp #include using namespace std; int main() { int n,a[1001],maxx=1; cin>>n; f…… 题解列表 2023年01月09日 0 点赞 0 评论 751 浏览 评分:9.9
3021: Pell数列 摘要:```cpp #include using namespace std; int a[1000005]={0,1,2},k=0,n; int main() { cin>>n; …… 题解列表 2023年01月09日 0 点赞 2 评论 571 浏览 评分:9.9