1366超级书架2 中等贪心算法(注释很详细) 摘要:这道题其实挺简单的,不知道为什么设置成中等难度//贪心规则:每次选最高的奶牛就是了 #include<bits/stdc++.h> using namespace std; int …… 题解列表 2023年01月09日 0 点赞 0 评论 350 浏览 评分:9.9
2929: 网线主管 摘要:解题思路:难点:此题难点为有小数,所以在输入时要先乘一个十,再进行二分答案。 解题过程 { 1.输入。(并转换成为整数) 2.while循环进行二分答案。 { …… 题解列表 2023年01月09日 1 点赞 0 评论 428 浏览 评分:9.9
【Python题解】蓝桥杯算法训练VIP-阶乘 摘要:解题思路:见代码注释参考代码:n = int(input()) def func(num): # 返回最右侧的非0值 s = str(num) for i in s[:…… 题解列表 2023年01月09日 0 点赞 0 评论 307 浏览 评分: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 评论 375 浏览 评分: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 评论 364 浏览 评分:9.9
3020: 最大数位置 摘要:```cpp #include using namespace std; int main() { int n,a[1001],maxx=1; cin>>n; f…… 题解列表 2023年01月09日 0 点赞 0 评论 760 浏览 评分: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 评论 580 浏览 评分:9.9
3022: 流感传染 摘要:```cpp #include using namespace std; struct node { string s[105]; }; const int zl[4][2]={…… 题解列表 2023年01月09日 0 点赞 0 评论 370 浏览 评分:9.9
3023: 移动路线 摘要:```cpp #include using namespace std; int dp[20][20]; int main() { int n,m; cin>>n>>m;…… 题解列表 2023年01月09日 0 点赞 0 评论 385 浏览 评分:9.9
3024: 判断整除 摘要:```cpp #include using namespace std; int p[10000],n,m; bool vis=false; void dfs(int k) { …… 题解列表 2023年01月09日 0 点赞 0 评论 458 浏览 评分:9.9