while循环的简单使用 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int x(int n) { int sum = 0; if (n < 2) return 0; while (n…… 题解列表 2024年12月17日 0 点赞 0 评论 387 浏览 评分:0.0
2852配对碱基链 摘要:解题思路:注意事项:#n=include<string>是引用strlen函数的头文件参考代码:#include<stdio.h>#include<string.h>int main(){ ch…… 题解列表 2024年12月17日 3 点赞 0 评论 245 浏览 评分: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 评论 211 浏览 评分:0.0
利用等比数列前n项和公式来解决问题 摘要:解题思路:利用等比数列前n项和公式注意事项:该等比数列的项数为n-1个项参考代码:#include <stdio.h>#include <math.h>int main(){ double ti…… 题解列表 2024年12月17日 1 点赞 0 评论 237 浏览 评分:10.0
简单易想到 摘要:解题思路:进行字符串拼接注意事项:参考代码:#include<stdio.h>#include<string.h>void fun(char*a,char*b){ char c[100]; int i…… 题解列表 2024年12月17日 1 点赞 0 评论 475 浏览 评分: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 评论 184 浏览 评分:0.0
字符类型统计 摘要:解题思路:数组,便于想到注意事项:参考代码:#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 评论 524 浏览 评分:0.0
简单易懂的解 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char a[200]; gets(a); i…… 题解列表 2024年12月16日 0 点赞 0 评论 184 浏览 评分:0.0
递归7行解决猴子吃桃 摘要:参考代码:n=eval(input())def peach(m): if m==n: return 1 else: return 2*(peach(m+1)+1…… 题解列表 2024年12月16日 2 点赞 0 评论 746 浏览 评分:10.0