摘要: 1. IFS(Internal Field Seprator) 变量 IFS 变量是一个特殊的环境变量,叫做内部域分隔符。 IFS 环境变量定义了bash shell用作字段分隔符的一系列字符。如果bash shell在数据中看到了这些字符中的任意一个,它就会假定这表明了列表中一个新数据字段的开始。 阅读全文
posted @ 2020-01-28 13:58 孤独な霊魂 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 摘自 "Wikipedia——刚性方程" 。 1. 定义 在数学领域中, 刚性方程 (stiffness equation)是指一个微分方程,其数值分析的解只有在时间间隔很小时才会稳定,只要时间间隔略大,其解就会不稳定。目前很难去精确地去定义哪些微分方程是刚性方程,然而粗略而言,若此方程式中包含使其 阅读全文
posted @ 2020-01-28 13:53 孤独な霊魂 阅读(3061) 评论(0) 推荐(0) 编辑
摘要: 【注】以下公式的意义在于它们可以求π小数点后任意位的数字。 1. BBP公式 2. 其他BBP-Type公式 阅读全文
posted @ 2019-11-07 20:33 孤独な霊魂 阅读(4918) 评论(0) 推荐(0) 编辑
摘要: 8201-BBP Formula Time limit: 3.000 seconds In 1995, Simon Plouffe discovered a special summation style for some constants. Two year later, together wi 阅读全文
posted @ 2019-11-07 18:59 孤独な霊魂 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 1. 欧拉函数定义 欧拉函数φ(n)表示的是小于等于n且和n互质的正整数的个数。(易知φ(1) = 1) 2. 欧拉函数公式 对于任意整数n,若其质因数分解结果为n = p1k1 p2k1 ... pnkn ,则欧拉函数公式为 φ(n) = n(1-1/p1)(1-1/p2)...(1-1/pn) 阅读全文
posted @ 2019-10-19 23:22 孤独な霊魂 阅读(4133) 评论(0) 推荐(0) 编辑
摘要: B. Polygons time limit per test:2 seconds memory limit per test:256 megabytes input:standard input output:standard output B. Polygons time limit per t 阅读全文
posted @ 2019-09-28 16:50 孤独な霊魂 阅读(176) 评论(0) 推荐(0) 编辑
摘要: B. Expansion coefficient of the array time limit per test:1 second memory limit per test:256 megabytes input:standard input output:standard output B. 阅读全文
posted @ 2019-09-22 17:26 孤独な霊魂 阅读(201) 评论(0) 推荐(0) 编辑
摘要: B. Gluttony time limit per test:2 seconds B. Gluttony time limit per test:2 seconds memory limit per test:256 megabytes memory limit per test:256 mega 阅读全文
posted @ 2019-09-22 15:20 孤独な霊魂 阅读(140) 评论(0) 推荐(0) 编辑
摘要: C. Neko does Maths time limit per test:1 second memory limit per test:256 megabytes input:standard input output:standard output Neko loves divisors. D 阅读全文
posted @ 2019-09-22 13:40 孤独な霊魂 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 1. 欧几里得距离 给定空间中两个点(x1,y1),(x2,y2);它们之间的欧几里得距离公式为:((x1-x2)2+(y1-y2)2)1/2,即两个点之间的直线距离。本质是向量的2-范数。 2. 曼哈顿距离 给定空间中两个点(x1,y1),(x2,y2);它们之间的曼哈顿距离公式为:|x1-x2| 阅读全文
posted @ 2019-05-12 23:58 孤独な霊魂 阅读(247) 评论(0) 推荐(0) 编辑