DP入门 # 2809: 菲波那契数列 摘要:``` // 注意这道题第一下项的下标为0,所以我们最后输出的是dp[n-1] #include #include #include #include using namespace …… 题解列表 2024年10月25日 1 点赞 0 评论 409 浏览 评分:0.0
优质裁缝题解 摘要:#include int main() { int n; scanf("%d", &n); int sum = 0; int ok = 0; int val = 0; fo…… 题解列表 2024年10月25日 0 点赞 0 评论 251 浏览 评分:0.0
2016: 新生的入队仪式 摘要:#include int main() { long long n, m; scanf("%lld %lld", &n, &m); long long ok1 = 0,ok2=0; …… 题解列表 2024年10月25日 0 点赞 0 评论 200 浏览 评分:0.0
用啥写都一样 摘要:解题思路:e......注意事项:无参考代码:print(''' ******** ************ …… 题解列表 2024年10月25日 1 点赞 0 评论 484 浏览 评分:0.0
ctype优质实现 摘要:#include #include int main() { char ch; int ss=0,tt = 0; while (isalpha(ch = getchar())&&ch…… 题解列表 2024年10月25日 0 点赞 0 评论 206 浏览 评分:0.0
1316: 最长不下降子序列的长度 摘要:解题思路:注意事项:参考代码:n = int(input())l = list(map(int,input().split()))memo = {}def find(i): if i in me…… 题解列表 2024年10月25日 0 点赞 0 评论 329 浏览 评分:0.0
1099: 校门外的树 摘要:解题思路:不要重复区域就行了注意事项:参考代码:#include<stdio.h>int main(){ int m,l,i; scanf("%d",&l); int arr[l+1…… 题解列表 2024年10月25日 1 点赞 0 评论 516 浏览 评分:0.0
题解 1952: 求长方形面积 摘要:解题思路:考查长方形的周长和面积,整数类型,C语言基础知识注意事项:注意题目要求“C:”、“S:”参考代码:#include <stdio.h> int main() { int w,h; …… 题解列表 2024年10月25日 2 点赞 0 评论 858 浏览 评分:0.0
浮点型储存空间 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float a; double b; printf ("%d %d",sizeof(a),si…… 题解列表 2024年10月25日 0 点赞 0 评论 525 浏览 评分:0.0
题解 1040: [编程入门]实数的打印 摘要:解题思路: 可以直接三个打印注意事项:实数用"6.2f"格式输出参考代码:#include<stdio.h> int main() { float a; scanf("…… 题解列表 2024年10月25日 1 点赞 0 评论 433 浏览 评分:0.0