摘要:
Organize Your Train part IITime Limit:1000MSMemory Limit:65536KTotal Submissions:4868Accepted:1422DescriptionRJ Freight, a Japanese railroad company for freight operations has recently constructed exchange lines at Hazawa, Yokohama. The layout of the lines is shown in Figure 1.Figure 1: Layout of th 阅读全文
摘要:
Surprising StringsTime Limit:1000MSMemory Limit:65536KTotal Submissions:3457Accepted:2323DescriptionTheD-pairsof a string of letters are the ordered pairs of letters that are distance D from each other. A string isD-uniqueif all of its D-pairs are different. A string issurprisingif it is D-unique fo 阅读全文
摘要:
PalindromeTime Limit:3000MSMemory Limit:65536KTotal Submissions:36646Accepted:12380DescriptionA palindrome is a symmetrical string, that is, a string read identically from left to right as well as from right to left. You are to write a program which, given a string, determines the minimal number of 阅读全文