字符类型统计 摘要:解题思路:数组,便于想到注意事项:参考代码:#include<string.h>void fun(char a[]){ int p=0,b=0,c=0,d=0,i; int len=strlen(a)…… 题解列表 2024年12月16日 0 点赞 0 评论 864 浏览 评分:0.0
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 评论 468 浏览 评分:0.0
简单易想到 摘要:解题思路:进行字符串拼接注意事项:参考代码:#include<stdio.h>#include<string.h>void fun(char*a,char*b){ char c[100]; int i…… 题解列表 2024年12月17日 1 点赞 0 评论 799 浏览 评分:0.0
3060: 合并石子 区间DP 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义全局变量n和数组a、dp int n, a[110], dp[1…… 题解列表 2024年12月17日 1 点赞 0 评论 501 浏览 评分:0.0
while循环的简单使用 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int x(int n) { int sum = 0; if (n < 2) return 0; while (n…… 题解列表 2024年12月17日 0 点赞 0 评论 690 浏览 评分:0.0
数组插入处理,从最后一个往前取值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[10]; int b,i,k; for(i=0;i<9;i++){ …… 题解列表 2024年12月18日 2 点赞 0 评论 885 浏览 评分:0.0
直接输入然后输出 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[10]; int i; for(i=0;i<10;i++){ sca…… 题解列表 2024年12月18日 0 点赞 0 评论 1166 浏览 评分: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 评论 789 浏览 评分:0.0