动态规划:类似最长递增子序列 摘要:# 动态规划 ## 解题思路 思考:如果求出了所有以每个数字结尾的且和为偶数的数量,则最终的答案是什么? $$ res = 1 + \sum_{1}^n 以nums[i]结尾且和为偶数…… 题解列表 2023年04月25日 0 点赞 1 评论 1106 浏览 评分:9.7
[STL训练]壮志难酬(c语言) 摘要:```c int main() { int t; scanf("%d", &t); while (t--) { char str[20] = { 0 }; int n;…… 题解列表 2023年04月25日 0 点赞 0 评论 475 浏览 评分:9.9
[STL训练]寻梦(c语言gets过不了) 摘要:```c #include #include int main() { int n; scanf("%d", &n); getchar(); while (n--) {…… 题解列表 2023年04月25日 0 点赞 1 评论 487 浏览 评分:9.9
编写题解 2794: 求平均年龄 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int n; scanf("%d", &n); int a[n]; for (int…… 题解列表 2023年04月25日 0 点赞 0 评论 442 浏览 评分:0.0
亲和串-手写函数解决(c语言) 摘要:```c #include #include char str1[100000]; char str2[100000]; void cycle_str(char*,int len); …… 题解列表 2023年04月25日 0 点赞 0 评论 482 浏览 评分:9.9
1005题: 温度转换 摘要:# 自己写的代码 ```c #include int main() { float n; scanf("%f",&n); printf("c=%.2f",5*(n-32)/9); …… 题解列表 2023年04月25日 0 点赞 0 评论 328 浏览 评分:0.0
编写题解 2797: 最高的分数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int a[n]; for(int i=0…… 题解列表 2023年04月25日 0 点赞 0 评论 376 浏览 评分:0.0
1006题: 三个数找最大值(数组的思路) 摘要:# 自己写的代码 ```c #include int main() { int a[3]; int temp; gets(a); for(int i=0;ia[i+1]){…… 题解列表 2023年04月25日 0 点赞 0 评论 343 浏览 评分:0.0
蓝桥杯2023年第十四届省赛真题-平方差 摘要:解题思路:先查看数字的规律,再下手注意事项:x要么是4的倍数,要么是奇数参考代码:#include<stdio.h>int panduan(int x){ if(x%4==0) return 1; …… 题解列表 2023年04月25日 0 点赞 0 评论 1247 浏览 评分:8.3
1007题: 分段函数求值(if-else) 摘要:# 自己写的代码 ```c #include int main() { int x; scanf("%d",&x); if(x=1&&x…… 题解列表 2023年04月25日 0 点赞 0 评论 322 浏览 评分:0.0