上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: 2090: Clay BullyResultTIME LimitMEMORY LimitRun TimesAC TimesJUDGE3s8192K421266StandardMs. Terry is a pre-school art teacher who likes to have her students work with clay. One of her assignments is to form a lump of clay into a block and then measure the dimensions of the block. However, in every cl 阅读全文
posted @ 2012-01-25 22:50 漂木 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 2230: Peter's smokesResultTIME LimitMEMORY LimitRun TimesAC TimesJUDGE1s8192K976410StandardPeter has n cigarettes. He smokes them one by one keeping all the butts. Out of k > 1 butts he can roll a new cigarette.How many cigarettes can Peter have?Input SpecificationInput is a sequence of lines 阅读全文
posted @ 2012-01-25 21:57 漂木 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 1023: Digital RootsResultTIME LimitMEMORY LimitRun TimesAC TimesJUDGE3s8192K63851371StandardBackgroundThe digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that digit is the digital root. If the resulting value contains tw 阅读全文
posted @ 2012-01-25 18:14 漂木 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 1175: The Binomial FunctionResultTIME LimitMEMORY LimitRun TimesAC TimesJUDGE3s8192K2837844Standard1st Jilin University ACM International Collegiate Programming ContestIn this problem, you are to write a program to make the value ofthe binomial function:where n and m are integers.Input Specification 阅读全文
posted @ 2012-01-24 22:18 漂木 阅读(197) 评论(0) 推荐(0) 编辑
摘要: Linux文件结构参见笔记第0篇 磁盘Linux分区必须挂载到目录树中的某个具体的目录上才能进行读写操作。根目录是所有Linux的文件和目录所在的地方,需要挂载上一个磁盘分区。一般来说,安装Linux至少要分三个区,即:/, /boot, swap。 在硬件软件的发展过程中,1024柱面限制以及137G问题都得到了解决。对于/boot是否要单独分出还有争议。独立有利于避免文件系统损坏造成的无法启动问题(据说),还有人将多个Linux启动都安在/boot上。对于新的Grub来说,/boot如果没有分的话确实不会影响到Linux系统的启动。当然,如果要安复古一些的Redhat4之类的,... 阅读全文
posted @ 2012-01-23 17:05 漂木 阅读(607) 评论(0) 推荐(0) 编辑
摘要: 首先上卡马克大神的靓照。Quake III的源代码里面发现这么一段用来求平方根的代码: 1 /*================SquareRootFloat================*/ 2 float SquareRootFloat(float number) { 3 long i; 4 float x, y; 5 const float f = 1.5F; 6 x = number * 0.5F; y = number; 7 i = * ( long * ) &y; 8 i = 0×5f3759df - ( i >> 1 ); //注... 阅读全文
posted @ 2012-01-22 17:24 漂木 阅读(513) 评论(0) 推荐(0) 编辑
摘要: // ************************************************************ //// 本文源自飞燕之家在线测评论坛http://yzfy.org/,转载清注明出处 //// ************************************************************ //代码调试技巧小集合(C语言描述,但C/C++/Pascal通用)1.输入重定向有不少人对自己提交到网站里得到的错误的结果而感到莫名其妙。但有可能由于题目的输入数据巨多,要是手工输入将会非常累。例如输入的数据可能多达成千上万。其实以下将要介绍的代码技 阅读全文
posted @ 2012-01-22 14:31 漂木 阅读(822) 评论(0) 推荐(0) 编辑
摘要: 版本一:简单题1000A+BProblem1001Exponentiation1003Hangover1004FinancialManagement1005IThinkINeedaHouseboat1005Biorhythms1007DNASorting1013CounterfeitDollar1014Dividing1032Parliament1045BodePlot1119StartUptheStartup1131OctalFractions1142SmithNumbers1151Atlantis1152AnEasyProblem!1188GleamingtheCubes1207The3n 阅读全文
posted @ 2012-01-21 17:47 漂木 阅读(599) 评论(0) 推荐(0) 编辑
摘要: 做男人不容易系列Solutions Amber2yearsago,ItrainedinFudanUniversityinShanghaiandattendedthiscontestholdbyLouTiancheng.Thetitleofthiscontestis“hardtobeaman”andthesubtitleis“Ifyouareaman,passall8problems”.Igotonly1problemacceptedatthattime.Actually,noone... 阅读全文
posted @ 2012-01-21 17:43 漂木 阅读(1673) 评论(0) 推荐(0) 编辑
摘要: 0------------------------------------------------------------------------------------1. 学习流程 1. Linux平台的开发,vi、gcc、gdb、mysql、tomcat等基本操作 2.《C专家编程》 3. 学习UNIX高级编程《UNIX环境高级编程》 4. Linux应用系统开发/Linux嵌入式开发2. Linux学习方法 1. 用什么再学什么 2. 先know how 再know why 3. 计算机是... 阅读全文
posted @ 2012-01-20 16:23 漂木 阅读(270) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 下一页