蓝桥杯算法提高VIP-聪明的美食家 摘要:解题思路:注意事项:参考代码:n=int(input())li=list(map(int,input().split()))dp=[1 for i in range(len(li)+1)]for i …… 题解列表 2022年04月08日 0 点赞 0 评论 450 浏览 评分:0.0
题目 2352: 信息学奥赛一本通T1440-数的划分 摘要:解题思路:将整数n分为k份,任意两份不能相同,而言,我们只需要保证这k个数,每个数都要大于等于前一个数即可。注意事项:int a[100]={1};//数组,存放每个值 int n,z;全局变量,方…… 题解列表 2022年04月08日 0 点赞 0 评论 596 浏览 评分:9.9
递增三元组——二分(c++) 摘要: 转了一圈发现没几个用二分的.... 思路很简单,我们先确定中间的数,b[i],然后分别二分查找比b[i]小的以及比b[i]大的数即可。我们可以在比b[i]小的数中,找到最大的数,那么比他小的数,…… 题解列表 2022年04月08日 0 点赞 0 评论 700 浏览 评分:9.9
1507: 蓝桥杯算法提高VIP-去注释(c++) 摘要:参考代码:#include<bits/stdc++.h> using namespace std; char s[1000000]; int main(){ char c,t; …… 题解列表 2022年04月08日 0 点赞 0 评论 421 浏览 评分:0.0
字符串的修改 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int dp[1005][1005];char A[205],B[205];int …… 题解列表 2022年04月08日 0 点赞 0 评论 478 浏览 评分:9.9
1810:输入输出练习之精度控制3 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char ch; int a; float b; double c;&nb 题解列表 2022年04月08日 0 点赞 0 评论 447 浏览 评分:0.0
1812:输入输出练习之输出图案 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){char a;scanf("%c",&a);printf(" %c \n",a);printf(" %c%c%…… 题解列表 2022年04月08日 0 点赞 0 评论 888 浏览 评分:6.3
全球变暖BFS 摘要: 宽搜解法 #include #include #include using namespace std; const int N …… 题解列表 2022年04月08日 0 点赞 0 评论 565 浏览 评分:9.9
1951:求平方和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int a,b,c;scanf("%d%d",&a,&b);c=a*a+b*b;printf("%d",c);re…… 题解列表 2022年04月08日 0 点赞 0 评论 418 浏览 评分:0.0
就是nb,不会速来看 摘要:解题思路:注意事项:参考代码:n = int(input())sum_1 = 0t = 0for i in range(10000,999999): i = str(i) p = i …… 题解列表 2022年04月08日 0 点赞 0 评论 415 浏览 评分:0.0