10 2015 档案
摘要:A sequence of N positive integers (10 b[j]-s)continue; while(b[i]<=b[j]-s)i++; ans=min(ans,j-i+1); } printf("%d\n"...
阅读全文
摘要:Alice got a hold of an old calculator that can display n digits. She was bored enough to come up with the following time waster.She enters a number k ...
阅读全文
摘要:Bob is a strategy game programming specialist. In his new city building game the gaming environment is as follows: a city is built up by areas, in whi...
阅读全文
摘要:In a city there are n bus drivers. Also there are n morning bus routes and n afternoon bus routes withvarious lengths. Each driver is assigned one mor...
阅读全文
摘要:Here is a famous story in Chinese history.That was about 2300 years ago. General Tian Ji was a high official in the country Qi. He likes to play horse...
阅读全文
摘要:A number of students are members ofa club that travels annually to exoticlocations. Their destinations in thepast have included Indianapolis, Phoenix,...
阅读全文
摘要:We would like to place n rooks, 1 ≤ n ≤ 5000, on a n × nboard subject to the following restrictions• The i-th rook can only be placed within the recta...
阅读全文
摘要:There are lots of number games for children. These games are pretty easy to play but not so easy to make. We will discuss about an interesting game he...
阅读全文