随笔分类 - Algorithm
摘要:Power of CryptographyBackgroundCurrent work in cryptography involves (among other things) large prime numbers and computing powers of numbers modulo f...
阅读全文
摘要:Problem A.Ant on a ChessboardBackgroundOne day, an ant called Alice came to an M*M chessboard. She wanted to go around all the grids. So she began to ...
阅读全文
摘要:The Mad NumerologistTime limit: 3.000 secondsNumerology is a science that is used by many people to find out a mans personality, sole purpose of life,...
阅读全文
摘要:487-3279Time limit: 3.000 secondsBusinesses like to have memorable telephone numbers. One way to make a telephone number memorable is to have it spell...
阅读全文
摘要:Searching QuicklyTime limit: 3.000 secondsBackgroundSearching and sorting are part of the theory and practice of computer science. For example, binary...
阅读全文
摘要:Unix lsThe computer company you work for is introducing a brand new computer line and is developing a new Unix-like operating system to be introduced ...
阅读全文
摘要:AnanagramsMost crossword puzzle fans are used toanagrams--groups of words with the same letters in different orders--for example OPTS, SPOT, STOP, POT...
阅读全文
摘要:Stacks of FlapjacksTime limit: 3.000 secondsBackgroundStacks and Queues are often considered the bread and butter of data structures and find use in a...
阅读全文
摘要:Train SwappingAt an old railway station, you may still encounter one of the last remaining ``train swappers''. A train swapper is an employee of the r...
阅读全文
摘要:Tree's a CrowdTime limit: 3.000 secondsDr William Larch, noted plant psychologist and inventor of the phrase ``Think like a tree--Think Fig'' has inve...
阅读全文
摘要:Problem CIf We Were a Child AgainInput: standard inputOutput: standard outputTime Limit: 7 seconds “Oooooooooooooooh!If I could do the easy mathematic...
阅读全文
摘要:Cly与lyon的终极巅峰对决Time Limit:1000MS Memory Limit:65535K题型: 编程题语言: 无限制描述 从前有一天,ly与lyon在讨论人工智能里面的博弈问题,恰好,他们提到了五子棋。当然,这里说的五子棋是指无禁手(不知道什么是禁手的也不用管了,跟这题没关系)...
阅读全文
摘要:H拥挤的华农校巴Time Limit:1000MS Memory Limit:65535K题型: 编程题语言: 无限制描述 同学们来到华农3个月了,在华农印象最深的是什么呢?猪,牛,鹅?当然,很多同学会记得我们学校的大金龙校巴。华农这么大,坐校巴是很平常的事。无聊的LRC经常坐校巴从华山到五山...
阅读全文
摘要:BLRC才不会告诉你们的事情Time Limit:1000MS Memory Limit:65535K题型: 编程题语言: 无限制描述 作为一个ACMer,可能很多时候要熬夜。但是,熬夜不是必须的,倒不如第二天早点起来奋斗,而且这样在效率上有明显的提高。笨蛋LRC就是不明白这个道理,所以LRC...
阅读全文
摘要:ExponentiationTime limit: 3.000 secondsProblems involving the computation of exact values of very large magnitude and precision are common. For exampl...
阅读全文
摘要:strcpy: 所需头文件:#includeextern char *strcpy(char *dest, const char *src,);从源src地址开始且含有NULL(‘\0’)结束符的字符串复制到以dest开始的地址空间,函数返回指向dest的指针strc和des所指内存区域不可以重叠且...
阅读全文
摘要:Problem E: Automatic EditingSource file:autoedit.{c,cpp,java,pas}Input file:autoedit.inOutput file:autoedit.outText-processing tools likeawkandsedallo...
阅读全文
摘要:Immediate DecodabilityAn encoding of a set of symbols is said to beimmediatelydecodable if no code for one symbol is the prefix of a code for another ...
阅读全文
摘要:小希的迷宫Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 16163Accepted Submission(s): 4946Problem Desc...
阅读全文
摘要:畅通工程Time Limit: 4000/2000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 18861Accepted Submission(s): 9705Problem Descr...
阅读全文


浙公网安备 33010602011771号