SPOJ694Distinct Substrings&&SPOJ705New Distinct Substrings
摘要:Given a string, we need to find the total number of its distinct substrings. Input T- number of test cases. T<=20; Each test case consists of one stri
阅读全文
POJ 3261Milk Patterns
摘要:Time Limit: 5000MS Description Farmer John has noticed that the quality of milk given by his cows varies from day to day. On further investigation, he
阅读全文
POJ 1743Musical Theme
摘要:Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 27889 Accepted: 9413 Description A musical melody is represented as a sequence of N (1<=N<=
阅读全文