蓝桥杯2017年第八届真题-包子凑数【拓展欧几里得 完全背包】 摘要:**解题思路:** **本题考查了数学:拓展欧几里得以及DP完全背包问题** **拓展欧几里得:** 设方程ax+by=C,C是gcd(a,b)的倍数 若a,b互质,则方程一定有解且解的数…… 题解列表 2022年02月26日 0 点赞 0 评论 828 浏览 评分:9.9
C语言 两种方法 摘要:解题思路:(一) 建一个26位的数组,0~25代表a~z的个数,选出最大并记录最大的这个位置(二) 逐个读取字符串各个元素,相同的加一;选取最大的,并记录最大字符 注意事项:注意题目要求不超过1000…… 题解列表 2022年02月26日 0 点赞 0 评论 835 浏览 评分:9.9
1115: DNA思路与代码 java 摘要:- 思路 观察一个单元e,g, a=3: X0X 0X0 X0X 发现当行列相等, 或者行列相加等于a+1时为X,…… 题解列表 2022年02月26日 0 点赞 0 评论 598 浏览 评分:0.0
sort函数简单解决问题 摘要:#include<iostream>#include<algorithm>using namespace std;int arr[105];int main(){ int N; cin>>…… 题解列表 2022年02月26日 0 点赞 0 评论 385 浏览 评分:0.0
c语言格式完整版 摘要:#include<stdio.h>int main(){ int a,b; scanf("%d %d",&a,&b); printf("%4d\n",a); printf("×…… 题解列表 2022年02月26日 0 点赞 0 评论 556 浏览 评分:0.0
暴力解答,思维清晰 摘要:#include<iostream>#include<algorithm>using namespace std;int arr[1005];int A[1000],B[1000],C[1000],D…… 题解列表 2022年02月26日 0 点赞 0 评论 525 浏览 评分:0.0
1796: 蛇形填数(c语言--突然启发,思路清晰,不懂来揍我) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int n; int k=1; int a[100][100]; wh…… 题解列表 2022年02月26日 2 点赞 1 评论 776 浏览 评分:9.5
1097: 蛇行矩阵 java 摘要:- 思路 模拟该矩阵的形成过程即可  …… 题解列表 2022年02月26日 0 点赞 0 评论 489 浏览 评分:0.0
编写题解 2014: 疯狂的裁缝 摘要:解题思路:注意事项:参考代码:n=int(input()) ls=list(map(int,input().split())) dp=[0 for i in range(n)] for i in…… 题解列表 2022年02月26日 0 点赞 0 评论 644 浏览 评分:0.0
DNA题目解析 C++代码详解 摘要: ######原题链接:[DNA](https://www.dotcpp.com/oj/problem1115.html "DNA") ------------ 解题思路:观察题目中所给出的…… 题解列表 2022年02月26日 1 点赞 0 评论 815 浏览 评分:9.9