How manyTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1028 Accepted Submission(s): 403Problem DescriptionGive you n ( n < 10000) necklaces ,the length of necklace will not large than 100
Tunnel WarfareTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3076 Accepted Submission(s): 1175Problem DescriptionDuring the War of Resistance Against Japan, tunnel warfare was carried out
Problem DescriptionThere is a pile of n wooden sticks. The length and weight of each stick are known in advance. The sticks are to be processed by a woodworking machine in one by one fashion. It needs some time, called setup time, for the machine to
Problem DescriptionRecall the definition of the Fibonacci numbers: f1 := 1 f2 := 2 fn := fn-1 + fn-2 (n >= 3) Given two numbers a and b, calculate how many Fibonacci numbers are in the range [a, b]. InputThe input contains several test cases.
Problem DescriptionToday is Ignatius' birthday. He invites a lot of friends. Now it's dinner time. Ignatius wants to know how many tables he needs at least. You have to notice that not all the friends know each other, and all the friends do not want
Problem DescriptionIgnatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher gives him a deadline of handing in the homework. If Ignatius hands in the homework after the deadline, the teacher will
DescriptionSome of Farmer John's N cows (1 ≤ N ≤80,000) are having a bad hair day! Since each cow is self-conscious about hermessy hairstyle, FJ wants to count the number of other cows that can see thetop of other cows' heads.Each cow i has a
Description (Special Judge)We are given a sequence of Npositive integers a = [a1, a2, ..., aN] on which we can perform contractionoperations.One contraction operation consists of replacing adjacent elements ai and ai+1by their difference ai-ai+1.
Problem DescriptionArbitrage is the use ofdiscrepancies in currency exchange rates to transform one unit of a currencyinto more than one unit of the same currency. For example, suppose that 1 USDollar buys 0.5 British pound, 1 British pound buys 10.0
Description(Special Judge)Andrew is working as systemadministrator and is planning to establish a new network in his company. Therewill be N hubs in the company, they can be connected to each other usingcables. Since each worker of the company must
DescriptionJapan plans to welcome the ACMICPC World Finals and a lot of roads must be built for the venue. Japan is tallisland with N cities on the East coast and M cities on the West coast (M <=1000, N <= 1000). K superhighways will be build.