与图灵第一次相遇是在2013年刚考上研究生时。本科作为一个理科生,所学专业与计算机毫无关联,疯疯傻傻的到了快毕业了,突然清醒——工作不好找啊! 我也走上了前辈们的老路,延迟找工作——读研。现在想想也许真的是逃避现实吧!到了大四上学期,天天五点多去图书馆占位置,每天早上去图书馆…...
题目 Problem 581. 47-smooth triangular numbers A number is p-smooth if it has no prime factors larger than p. Let T be the sequence of tri…...
题目 Problem 593. Fleeting Medians We define two sequences ![][1] and ![][2]: ![][3] where pk is the kth prime number. … ...
题目 Prolblem 578: Integers with decreasing prime powers Any positive integer can be written as a product of prime powers: p1a1 ...
算法 要生成 [1..n] 的随机排列,可以使用算法 A: [《计算机程序设计艺术 卷2:半数值算法(第3版)》算法 3.4.2P(第 110 页)] 生成排列 [1..n],记为 a,其中 a[1] = 1, a[2] = 2, ..., a[n] = n。 生成 [1…...
均匀分布 Numerical Recipes, The Art of Scientific Computing, Third Edition, Chapter 7 Random Numbers: Ran 程序  such that 0 ≤ x ≤ 1 and用来输出文本,并切换到下一行,用法System.Console.WriteLine("HelloWorld")或者带变量的`System…...
5.0 out of 5 stars OuStanding !!!!!!!, October 2, 2012 Have been waiting on various new books to drop including MVC in Context and others …...
我的 C# 程序: using System; using System.Collections.Generic; static class Pot2 { static int[] Max = { 5, 6 }; // 每只壶的最大容量,可为任意正整数 static int…...
这本书仍然是入门 C# 最好的一本书。 这本书新版出来的时候我十分关注,于是英子姐送了一本给我,本文也是答应英子姐所写的一篇文章。她一开始还问我“你现在还需要看这本入门书吗?”,我认为是的。工作了遇到了不少问题,大都跟自己基础不牢有关系。 这本书以图形为载体,生动地介绍了 …...
人民邮电出版社图灵公司准备重新出版《纯数学教程(纪念版)》。我于 2013 年 10 月写了一篇文章“《纯数学教程(纪念版)》中的根式”,说:书中的根式里面都有不必要的括号。 现在我们来去掉这些不必要的括号。这本书是使用 LaTeX 排版的,第 31 页第 32 题的第 1 …...
前两天的算法1和算法2分别处理两个和多个水壶的情况,但都是有缺陷的,它们并不保证在给定的问题有解的情况下一定能够找到解答。今天我们要介绍的算法3只能处理两只水壶,但是它在给定的问题有解的情况下一定可以找到解答。 … ...
测试程序 在 图灵社区:随机数(二)中,我们给出了一个 NrRandom 类,能够产生更好的伪随机序列。那么,它与 .NET Framework 中的 Random 类相比,性能如何呢?让我们写一个测试程序吧: using System; using System.Diag…...
CoreCLR 中的 Random 类 在 .NET Framework 中,伪随机数生成器是使用 System.Random 类来实现的。Microsoft 已经开源了 .NET Core Runtime (CoreCLR),我们可以从 GitHub 下载: $ git…...
题目 Problem 609. π sequences For every n ≥ 1 the prime-counting function π(n) is equal to the number of primes not exceeding n. E.g. π(6)…...
题目 Problem 583. Heron Envelopes A standard envelope shape is a convex figure consisting of an isosceles triangle (the flap) placed on to…...
从大学就开始读图灵的计算机类的书,一直如此,从java的《action in spring》开始,到现在从事.net工作,开始读《精通ASP.NET 4.5》、《web API》、《算法》、《深入理解C#》等等。 我是从事软件工程的,所以图灵的名号在圈子里面是响当当的,无论是…...