摘要: DescriptionAn oligarch Vovan, as many other oligarchs, transports oil from West Cuckooland to East Cuckooland. He owns a huge oil-producing station in West Cuckooland, an equally huge oil-refining station in East Cuckooland and a system of oil pipelines to move oil from one country to another. Vovan 阅读全文
posted @ 2013-08-20 16:25 Oyking 阅读(392) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionA Fibonacci sequence is calculated by adding the previous two members the sequence, with the first two members being both 1. F(1) = 1, F(2) = 1, F(3) = 1,F(4) = 1, F(n>4) = F(n - 1) + F(n-2) + F(n-3) + F(n-4) Your task is to take a number as input, and print that Fibonacci numb 阅读全文
posted @ 2013-08-20 15:14 Oyking 阅读(194) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionGiven an integer N(0 ≤ N ≤ 10000), your task is to calculate N!InputOne N in one line, process to the end of file.OutputFor each N, output N! in one line.题目大意:求N的阶乘。思路:用高精度,内存存不下这么多只能每次都重新算了……代码(3093MS): 1 //模板测试 2 #include 3 #include 4 #include 5 #include 6 #include 7... 阅读全文
posted @ 2013-08-20 15:11 Oyking 阅读(229) 评论(0) 推荐(0) 编辑