随笔分类 - 我的代码
摘要:头文件:itoa --功能:将任意类型的数字转换为字符串。在中与之有相反功能的函数是atoi。atoi----功 能: 将字符串转换成整型数;atoi()会扫描参数nptr字符串,跳过前面的空格字符,直到遇上数字或正负号才开始做转换,而再遇到非数字或字符串时('\0')才结束转化,并将结果返回(返回...
阅读全文
摘要:DescriptionYou, as a member of a development team for a new spell checking program, are to write a module that will check the correctness of given wor...
阅读全文
摘要:DescriptionFarmer John recently bought another bookshelf for the cow library, but the shelf is getting filled up quite quickly, and now the only avail...
阅读全文
摘要:Problem DescriptionAs the new term comes, the Ignatius Train Station is very busy nowadays. A lot of student want to get back to school by train(becau...
阅读全文
摘要:J - MANAGER(2.4.5)Crawling in process...Crawling failedTime Limit:1000MSMemory Limit:10000KB 64bit IO Format:%I64d & %I64uSubmitStatus DescriptionOne ...
阅读全文
摘要:I - The 3n + 1 problem(2.4.2)Crawling in process...Crawling failedTime Limit:1000MSMemory Limit:10000KB 64bit IO Format:%I64d & %I64uSubmitStatus Desc...
阅读全文
摘要:H - Gold Coins(2.4.1)Crawling in process...Crawling failedTime Limit:1000MSMemory Limit:30000KB 64bit IO Format:%I64d & %I64uSubmitStatus DescriptionT...
阅读全文
摘要:J - Vertical Histogram(1.5.7)Time Limit:1000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionWrite a program to read four lin...
阅读全文
摘要:hdu1052TianJi--TheHorseRacing(2011-08-26 08:32:51)转载▼标签:杂谈分类:acm杂谈Tian Ji -- The Horse RacingTime Limit : 2000/1000ms (Java/Other)Memory Limit : 65536...
阅读全文
摘要:钥匙计数之一 Time Limit : 2000/1000ms (Java/Other)Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 1Accepted Submission(s) : 1Font: Times New R...
阅读全文
摘要:这道题是排序问题,可以用递归方法解决。计算F(n):一:当最后一个是男孩M时候,前面n-1个随便排出来,只要符合规则就可以,即是F(n-1);二:当最后一个是女孩F时候,第n-1个肯定是女孩F,这时候又有两种情况: 1)前面n-2个可以按n-2个的时候的规则来,完全可以,即是F(n-2); ...
阅读全文
摘要:Delta-wave Time Limit : 2000/1000ms (Java/Other)Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 35Accepted Submission(s) : 9Font: Times ...
阅读全文
摘要:Heritage from father Time Limit : 2000/1000ms (Java/Other)Memory Limit : 131070/65535K (Java/Other)Total Submission(s) : 73Accepted Submission(s) : 26...
阅读全文
摘要:算法思想:(1) 产生两个随机数(2) 产生一个运算符(3) 用户输入答案(4) 验证答案正确与否(5) 转(1) 重复执行 主函数中用到了srand(time(NULL))上百度查了一下和随机产生有关。如果在程序运行时没有自主设置种子的话,用函数rand产生的随机数序列会是一样的。而用srand设...
阅读全文
摘要:A + B Problem IITime Limit : 2000/1000ms (Java/Other)Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 108Accepted Submission(s) : 21Font:...
阅读全文
摘要:.Integer InquiryProblem DescriptionOne of the first users of BIT's new supercomputer was Chip Diller. He extended his exploration of powers of 3 to go...
阅读全文
摘要:求N!Problem DescriptionGiven an integer N(0 ≤ N ≤ 10000), your task is to calculate N!InputOne N in one line, process to the end of file.OutputFor each...
阅读全文

浙公网安备 33010602011771号