摘要:
Problem Description A string is called a square string if it can be obtained by concatenating two copies of the same string. For example, "abab", "aa" 阅读全文
摘要:
Description A prefix of a string is a substring starting at the beginning of the given string. The prefixes of "carbon" are: "c", "ca", "car", "carb", 阅读全文
摘要:
Problem Description You are given two sequence {a1,a2,...,an} and {b1,b2,...,bn}. Both sequences are permutation of {1,2,...,n}. You are going to find 阅读全文
摘要:
Problem Description Given a list of phone numbers, determine if it is consistent in the sense that no number is the prefix of another. Let’s say the p 阅读全文
摘要:
Problem Description Given two positive integers a and b,find suitable X and Y to meet the conditions: X+Y=a Least Common Multiple (X, Y) =b Input Inpu 阅读全文
摘要:
Problem Description B君和G君聊天的时候想到了如下的问题。给定自然数l和r ,选取2个整数x,y满足l <= x <= y <= r ,使得x|y最大。其中|表示按位或,即C、 C++、 Java中的|运算。 Input 包含至多10001组测试数据。第一行有一个正整数,表示数据 阅读全文
摘要:
Problem Description Chinese always have the railway tickets problem because of its' huge amount of passangers and stations. Now goverment need you to 阅读全文
摘要:
Problem Description For a number,if the length of continuous odd digits is even and the length of continuous even digits is odd,we call it odd-even nu 阅读全文