摘要:
Time Limit: 1000 MS Memory Limit: 131072 K DescriptionLong time ago, a king occupied a vast territory. Now there is a problem that he worri... 阅读全文
摘要:
Problem Description A Fibonacci sequence is calculated by adding the previous two members the sequence, with the first two members being both ... 阅读全文
摘要:
You have number a, whose decimal representation quite luckily contains digits 1, 6, 8, 9. Rearrange the digits in its decimal representation so that t... 阅读全文
摘要:
Simon has a prime number x and an array of non-negative integers a1, a2, ..., an.Simon loves fractions very much. Today he wrote out number on a piec... 阅读全文
摘要:
A triangle field is numbered with successive integers in the way shown on the picture below. The traveller needs to go from the cell with number M to ... 阅读全文
摘要:
Mr. Santa asks all the great programmers of the world to solve a trivial problem. He gives them an integer m and asks for the number of positive integ... 阅读全文