摘要: 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 阅读全文
posted @ 2013-11-05 21:25 秋心无波 阅读(502) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2013-11-05 19:52 秋心无波 阅读(288) 评论(0) 推荐(0) 编辑