摘要: 1 /* 2 CF789B. Masha and geometric depression 3 http://codeforces.com/contest/789/problem/B 4 水题 5 各种特判,贼烦 6 */ 7 #include 8 #include 9 #include 10 #include 11 #include ... 阅读全文
posted @ 2017-03-30 12:02 BBBob 阅读(1488) 评论(0) 推荐(0) 编辑
摘要: 1 /* 2 CF789A. Anastasia and pebbles 3 http://codeforces.com/contest/789/problem/A 4 水题 5 题意:有两个背包,每次分别可取k个物品,要求每次背包中的物品都是一种 6 问要取多少次。 7 对于每种物品,都要取ceil(n/k)次,因此只要加起来再除以2就是答案 8 */ 9 #i... 阅读全文
posted @ 2017-03-30 12:01 BBBob 阅读(839) 评论(0) 推荐(0) 编辑
摘要: 1 /* 2 CF789C. Functions again 3 http://codeforces.com/contest/789/problem/C 4 水题 5 题意:求数组中的连续和的最大值 6 */ 7 #include 8 #include 9 #include 10 #include 11 #include 12 #include 13 //... 阅读全文
posted @ 2017-03-30 11:55 BBBob 阅读(514) 评论(0) 推荐(0) 编辑