3059: 开餐馆 DP DP DP DP 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int t,n,k,m[110],p[110],dp[1100]; int…… 题解列表 2024年12月17日 0 点赞 0 评论 233 浏览 评分:0.0
简单易想到 摘要:解题思路:进行字符串拼接注意事项:参考代码:#include<stdio.h>#include<string.h>void fun(char*a,char*b){ char c[100]; int i…… 题解列表 2024年12月17日 1 点赞 0 评论 536 浏览 评分:0.0
利用等比数列前n项和公式来解决问题 摘要:解题思路:利用等比数列前n项和公式注意事项:该等比数列的项数为n-1个项参考代码:#include <stdio.h>#include <math.h>int main(){ double ti…… 题解列表 2024年12月17日 1 点赞 0 评论 295 浏览 评分:10.0
3060: 合并石子 区间DP 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义全局变量n和数组a、dp int n, a[110], dp[1…… 题解列表 2024年12月17日 1 点赞 0 评论 258 浏览 评分:0.0
2852配对碱基链 摘要:解题思路:注意事项:#n=include<string>是引用strlen函数的头文件参考代码:#include<stdio.h>#include<string.h>int main(){ ch…… 题解列表 2024年12月17日 3 点赞 0 评论 296 浏览 评分:10.0
while循环的简单使用 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int x(int n) { int sum = 0; if (n < 2) return 0; while (n…… 题解列表 2024年12月17日 0 点赞 0 评论 427 浏览 评分:0.0
数组插入处理,从最后一个往前取值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[10]; int b,i,k; for(i=0;i<9;i++){ …… 题解列表 2024年12月18日 1 点赞 0 评论 605 浏览 评分:0.0
直接输入然后输出 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[10]; int i; for(i=0;i<10;i++){ sca…… 题解列表 2024年12月18日 0 点赞 0 评论 905 浏览 评分:0.0
简单易想到 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void fun(int a[],int m,int n){ int b[n],i,j=0; for(i=n-m;i<n;i++){ …… 题解列表 2024年12月18日 2 点赞 0 评论 545 浏览 评分:0.0