Mar 16, 2022
python,
CHECKIO
题目需求 题目的原意可以总结为:以尽量简洁的方式,完成各种类Fibonacci计算。 提到的类型有: fibonacci: f(0)=0, f(1)=1, f(n)=f(n-1)+f(n-2) tribonacci: f(0)=0, f(1)=1, f(2)=1, f(n)=f(n-1)+f(n-2)+f(n-3) lucas: f(0)=2, f(1)=1, f(n)=f(n-1)+f(n-2) jacobsthal: f(0)=0, f(1)=1, f(n)=f(n-1)+2*f(n-2) pell: f(0)=0, f(1)=1, f(n)=2*f(n-1)+f(n-2) perrin:
...
Mar 16, 2022
python,
CHECKIO
题目需求 题目的原意可以总结为:求N个M面骰子(骰子点数为1-M)掷出X点数的概率。 其中,N,M,X依次为我们需要编写的函数的三个参数。返回值
...
Mar 16, 2022
python,
CHECKIO
After a long absence, I returned to continue playing CheckIO tasks by a notification mail. The UI had been optimized a lot and the tasks were still as interesting as the before.
a.external { background: url('/images/external.png') no-repeat 100% 0; background-size: 14px 14px; padding-right: 16px; } Inside Block required checking whether a given point is inside a polygon or not. After some research on google, I found a practical method.
...
Mar 16, 2022
python,
CHECKIO
冲分的时候又到了!! 题目要求 题目要求一如既往的简单明了: 统计一段文字中,有多少空格满足周围都不是空格字符的数量 而原始代码嘛…… def golf(text): return 0 思路 我
...
Mar 16, 2022
python,
CHECKIO
http://www.checkio.org/mission/task/info/anagrams-by-stacks/python-27/
...
Mar 16, 2022
Programming,
python,
CHECKIO
a.external { background: url('/images/external.png') no-repeat 100% 0; background-size: 14px 14px; padding-right: 16px; } http://www.checkio.org/mission/task/info/snake/python-27/ 呀〜贪吃蛇啊…… 和其他的task不同的是,这个是一次multicall。不过我其实完全可以不考虑这点,每次给出当
...
Mar 16, 2022
python,
CHECKIO
http://www.checkio.org/mission/task/info/area-of-a-convex-polygon/pyth
...
Mar 16, 2022
python,
CHECKIO
http://www.checkio.org/mission/task/info/three-points-circle/python-27
...
Mar 16, 2022
python,
CHECKIO
a.external { background: url('/images/external.png') no-repeat 100% 0; background-size: 14px 14px; padding-right: 16px; } 题目的描述超级麻烦,不过逻辑很简单,没有什么特别注意的地方,全是非常基础的知识。 def checkio(data): sum_of_digits = 0 data = [i for i in data if ('0'<=i and i<='9') or
...
Mar 16, 2022
python,
CHECKIO
a.external { background: url('/images/external.png') no-repeat 100% 0; background-size: 14px 14px; padding-right: 16px; } Task描述简单的说就是这样: 给出的字符串数字是k进制的 这个k进制的数换算成10进制之后,能够被k-1整除。 从题目
...