摘要: Description Farmer John是一个令人惊讶的会计学天才,他已经明白了他可能会花光他的钱,这些钱本来是要维持农场每个月的正常运转的。他已经计算了他以后N(1<=N<=100,000)个工作日中每一天的花费moneyi(1<=moneyi<=10,000),他想要为他连续的M(1<=M 阅读全文
posted @ 2015-10-04 09:56 HTWX 阅读(169) 评论(0) 推荐(0) 编辑
摘要: DescriptionEver the maturing businessman, Farmer John realizes that he must manage his time effectively. He has N jobs conveniently numbered 1..N (1 ... 阅读全文
posted @ 2015-10-04 09:54 HTWX 阅读(205) 评论(1) 推荐(0) 编辑
摘要: DescriptionFarmer John went to cut some wood and left N (2 2 #include 3 #include 4 #include 5 #include 6 #define MAX 100010 7 #define ll long long 8 ... 阅读全文
posted @ 2015-10-04 09:11 HTWX 阅读(131) 评论(0) 推荐(0) 编辑
摘要: DescriptionFarmer John's N (1 2 #include 3 #include 4 #include 5 #include 6 #define MAX 100010 7 #define ll long long 8 #define inf 600000000 9 using... 阅读全文
posted @ 2015-10-04 08:52 HTWX 阅读(125) 评论(0) 推荐(0) 编辑