摘要:
Problem Description Given a rectangle frame of size n×m. Initially, the frame is strewn with n×m square blocks of size 1×1. Due to the friction with t 阅读全文
摘要:
Problem Description Generally speaking, there are a lot of problems about strings processing. Now you encounter another such problem. If you get two s 阅读全文
摘要:
Problem Description A tree is a well-known data structure that is either empty (null, void, nothing) or is a set of one or more nodes connected by dir 阅读全文
摘要:
Problem Description Problem Description 一块花布条,里面有些图案,另有一块直接可用的小饰条,里面也有一些图案。对于给定的花布条和小饰条,计算一下能从花布条中尽可能剪出几块小饰条来呢? Input 输入中含有一些数据,分别是成对出现的花布条和小饰条,其布条都是用 阅读全文
摘要:
Problem Description The i’th Fibonacci number f(i) is recursively defined in the following way: Your task is to compute some values of this sequence I 阅读全文
摘要:
Problem Description After AC all the hardest problems in the world , the ACboy 8006 now has nothing to do . One day he goes to an old library to find 阅读全文
摘要:
Problem Description Consider equations having the following form: a*x1^2+b*x2^2+c*x3^2+d*x4^2=0 a, b, c, d are integers from the interval [-50,50] and 阅读全文
摘要:
Problem Description The French author Georges Perec (1936–1982) once wrote a book, La disparition, without the letter'e'. He was a member of the Oulip 阅读全文
摘要:
Problem Description 给出一个只由小写英文字符a,b,c...y,z组成的字符串S,求S中最长回文串的长度. 回文就是正反读都是一样的字符串,如aba, abba等 Input 输入有多组case,不超过120组,每组输入为一行小写英文字符a,b,c...y,z组成的字符串S 两组 阅读全文
摘要:
Problem Description Problem Description An earthquake takes place in Southeast Asia. The ACM (Asia Cooperated Medical team) have set up a wireless net 阅读全文