用二维数组思想打印dna 摘要:解题思路:注意事项:需要单独打印第一行,否则出现的DNA会有重复部分参考代码:#include<stdio.h>int main(){ int i,j,a,b,n; scanf("%d",&n); w…… 题解列表 2023年08月18日 0 点赞 0 评论 245 浏览 评分:0.0
1177: 三角形,C++动态规划实现 摘要:#1177: 三角形,C++动态规划实现 ####题目描述: [题目 1177: 三角形](https://www.dotcpp.com/oj/problem1177.html "题目 1177:…… 题解列表 2023年08月18日 0 点赞 0 评论 372 浏览 评分:0.0
1303: 统计数字(C++ STL) 摘要:# STL map ```c++ #include #include #include #include #include using namespace std; mapnums;…… 题解列表 2023年08月18日 0 点赞 0 评论 310 浏览 评分:0.0
蓝桥杯2023年第十四届省赛真题-翻转 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; #define ll long long void solve(){ …… 题解列表 2023年08月18日 0 点赞 0 评论 1008 浏览 评分:9.9
又是一个动态规划的题 摘要:#include<iostream> using namespace std; int main() { string s; while(getline(cin,s)) …… 题解列表 2023年08月18日 0 点赞 0 评论 264 浏览 评分:0.0
[python]自定义函数之字符类型统计 摘要:解题思路:注意事项:参考代码:my_str = input() letter = 0 num = 0 space = 0 other = 0 for i in my_str: if…… 题解列表 2023年08月18日 0 点赞 0 评论 164 浏览 评分:0.0
被3整除的子序列(动态规划) 摘要:解题思路:建立dp[i][j],代表以i结尾,余数是j的所有子序列, 转移方程:dp[i][k]=∑dp[j][w];(if(w+s[i])%3==k) dp[i][k]…… 题解列表 2023年08月17日 0 点赞 0 评论 261 浏览 评分:9.9
题解 2807 YHLX 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include <math.h>int main(){ int R, Y; long int M; scanf("%…… 题解列表 2023年08月17日 0 点赞 0 评论 331 浏览 评分:6.0
3150: 蓝桥杯2023年第十四届省赛真题-冶炼金属 摘要:解题思路:其实这是一道数学题,根据给出的样例进行计算,比如75 3 这组,所求V在V*3>=75并且V*4<75,分别向上取整和向下取整就能获得这组的最大最小,一共n组,在这n组中向上取整的取最大值,…… 题解列表 2023年08月17日 0 点赞 0 评论 517 浏览 评分:4.0
题解 2794: 求平均年龄 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define N 100int main(){ int n, age[N]; int i, sum=0; float…… 题解列表 2023年08月17日 0 点赞 0 评论 340 浏览 评分:6.0