摘要:
1049. Brave BalloonistsTime limit: 2.0 secondMemory limit: 64 MBTen mathematicians are flying on a balloon over the Pacific ocean. When they are crossing the equator they decide to celebrate this event and open a bottle of champagne. Unfortunately, the cork makes a hole in the balloon. Hydrogen is l 阅读全文
摘要:
1133. Fibonacci SequenceTime limit: 1.0 secondMemory limit: 64 MBis an infinite sequence of integers that satisfies to Fibonacci conditionFi+2=Fi+1+Fifor any integeri. Write a program, which calculates the value ofFnfor the given values ofFiandFj.InputThe input contains five integers in the followin 阅读全文