01 2018 档案

摘要:模型的建立基本来自于:http://www.doc88.com/p-2078634086043.html 花了一天半的时间用新学会的matlab实现了一下。 ─────────────────────────────────────────────────────────────────────── 阅读全文
posted @ 2018-01-27 10:40 Dilthey 阅读(3454) 评论(11) 推荐(4) 编辑
摘要:非递归算法: 根据圆盘的数量确定柱子的排放顺序: 若n为偶数,按顺时针方向依次摆放 A B C; 若n为奇数,按顺时针方向依次摆放 A C B。 然后进行如下操作: (1)按顺时针方向把圆盘1从现在的柱子移动到下一根柱子,即当n为偶数时,若圆盘1在柱子A,则把它移动到B;若圆盘1在柱子B,则把它移动 阅读全文
posted @ 2018-01-21 12:21 Dilthey 阅读(1323) 评论(0) 推荐(0) 编辑
摘要:题目链接:https://www.51nod.com/onlineJudge/questionCode.html#!problemId=1432 基准时间限制:1 秒 空间限制:131072 KB 基准时间限制:1 秒 空间限制:131072 KB 基准时间限制:1 秒 空间限制:131072 KB 阅读全文
posted @ 2018-01-19 20:10 Dilthey 阅读(188) 评论(0) 推荐(0) 编辑
摘要:目录: 1、函数取整 2、数据显示格式 3、三角函数运算 4、矩阵运算 5、函数句柄 6、二维函数图像绘制 7、符号对象 8、关于微积分 9、关于逻辑语句 10、关于运算符 ─────────────────────────────────────────────────────────────── 阅读全文
posted @ 2018-01-17 22:09 Dilthey 阅读(364) 评论(0) 推荐(0) 编辑
摘要:题目链接:https://cn.vjudge.net/problem/51Nod-1126 有一个序列是这样定义的:f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7. 给出A,B和N,求f(n)的值。 Input输入3个数: 阅读全文
posted @ 2018-01-17 22:04 Dilthey 阅读(416) 评论(0) 推荐(0) 编辑
摘要:首先考虑函数: floor(x) 向下取整ceil(x) 向上取整round(x) 四舍五入到最近的整数fix(x) 向零取整 通常情况下取模运算(mod)和求余(rem)运算被混为一谈,因为在大多数的编程语言里,都用'%'符号表示取模或者求余运算。 在这里要提醒大家要十分注意当前环境下'%'运算符 阅读全文
posted @ 2018-01-17 21:14 Dilthey 阅读(1633) 评论(0) 推荐(0) 编辑
摘要:题目链接:https://www.51nod.com/onlineJudge/questionCode.html#!problemId=1835 基准时间限制:1 秒 空间限制:131072 KB 基准时间限制:1 秒 空间限制:131072 KB 基准时间限制:1 秒 空间限制:131072 KB 阅读全文
posted @ 2018-01-16 20:55 Dilthey 阅读(459) 评论(0) 推荐(0) 编辑
摘要:是在教材(《计算机算法设计与分析(第4版)》王晓东 编著)上看见的关于求全排列的算法; 我们可以看一下书上怎么写的: 看一下运行结果: 显然,这个函数在功能实现上……存在一定的问题(虽然思路上没问题),所以…… 我自己重新写了一个,也许以后可能用的到呢: 阅读全文
posted @ 2018-01-12 12:46 Dilthey 阅读(159) 评论(0) 推荐(0) 编辑
摘要:Time limit 2000 ms Memory limit 262144 kB Source Codeforces Round #328 (Div. 2) Ari the monster is not an ordinary monster. She is the hidden identity 阅读全文
posted @ 2018-01-11 22:57 Dilthey 阅读(387) 评论(0) 推荐(0) 编辑
摘要:题目链接:http://codeforces.com/contest/592/problem/B B. The Monster and the Squirrel time limit per test 1 second memory limit per test 256 megabytes inpu 阅读全文
posted @ 2018-01-10 22:03 Dilthey 阅读(286) 评论(0) 推荐(0) 编辑
摘要:题目链接:http://codeforces.com/problemset/problem/551/C time limit per test 2 seconds memory limit per test 256 megabytes input standard input output stan 阅读全文
posted @ 2018-01-10 19:59 Dilthey 阅读(407) 评论(0) 推荐(0) 编辑
摘要:题目链接:http://codeforces.com/contest/586/problem/B B. Laurenty and Shop time limit per test 1 second memory limit per test 256 megabytes input standard 阅读全文
posted @ 2018-01-09 00:03 Dilthey 阅读(223) 评论(0) 推荐(0) 编辑