C语言训练-求函数值 (C语言代码)只能死板递归? 摘要:解题思路:虽然提交错误,但我也把代码贴出来;这里我处理了重叠子问题;提高了效率; 但是就是不通过。注意事项:参考代码:#include <cstdio> #include <cstring> #…… 题解列表 2018年11月07日 0 点赞 0 评论 592 浏览 评分:0.0
C语言训练-求函数值 (C语言代码)一行 摘要:解题思路:注意事项:参考代码:#include <cstdio> #include <cstring> #include <string> #include <cmath> #include …… 题解列表 2018年11月07日 0 点赞 0 评论 683 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.5 (C语言代码) 摘要:解题思路:有惊吓注意事项:参考代码:#include<stdio.h>int main(){int x,y;scanf("%d",&x);if(x<1){ y=x;}if(1<=x&&x<…… 题解列表 2018年11月07日 1 点赞 0 评论 533 浏览 评分:0.0
C语言训练-斐波纳契数列 (C语言代码)DP 摘要:解题思路: 最后别递归(因为重复子问题太多了),除非你用记忆化递归 T = O(nlogn); & 题解列表 2018年11月07日 0 点赞 0 评论 891 浏览 评分:0.0
C语言训练-求s=a+aa+aaa+aaaa+aa...a的值 (C语言代码)太简洁了 O(n) 摘要:解题思路: 比如给定a=2,n=3:就是2+22+222 = 246; 题解列表 2018年11月07日 1 点赞 0 评论 829 浏览 评分:0.0
C语言训练-求1+2!+3!+...+N!的和 (C语言代码)如此明了 摘要:解题思路:注意事项:参考代码:#include <cstdio> #include <cstring> #include <string> #include <cmath> #include …… 题解列表 2018年11月07日 0 点赞 0 评论 1200 浏览 评分:0.0
采药 (C语言代码)DP 摘要:解题思路:注意事项:参考代码:#include <cstdio> #include <cstring> #include <string> #include <cmath> #include …… 题解列表 2018年11月07日 0 点赞 0 评论 633 浏览 评分:0.0
采药 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <cstdio> #include <cstring> #include <string> #include <cmath> #include …… 题解列表 2018年11月07日 0 点赞 0 评论 539 浏览 评分:0.0
蓝桥杯算法提高VIP-栅格打印问题 (C语言代码) 摘要:#include "stdafx.h" //不通过,why,0,0的时候输出空也不对#define max 100int main(){ char a[100][10…… 题解列表 2018年11月07日 0 点赞 0 评论 703 浏览 评分:0.0
蓝桥杯算法提高VIP-寻找三位数 (C语言代码) 摘要:#include "stdafx.h"int fun(int a){ int x, y, z; x = a % 10; y = (a / 10) % 10; z = (a / 100) % 10; i…… 题解列表 2018年11月07日 0 点赞 0 评论 579 浏览 评分:0.0