Codeforce STL
Sher杨
这个作者很懒,什么都没留下…
展开
-
Codeforces Round #470 (rated, Div. 2, based on VK Cup 2018 Round 1)
C. Zebrastime limit per test1 secondmemory limit per test512 megabytesinputstandard inputoutputstandard outputOleg writes down the history of the days he lived. For each day he decides if it was good ...原创 2018-03-15 16:24:31 · 173 阅读 · 0 评论 -
Educational Codeforces Round 42 (Rated for Div. 2) D.Merge Equals(data structures,STL)
D. Merge Equalstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given an array of positive integers. While there are at least two equal ele...原创 2018-04-23 19:49:38 · 232 阅读 · 0 评论 -
Minimum Sum(思维+set)
5599: Minimum Sum时间限制: 2 Sec 内存限制: 256 MB提交: 141 解决: 47[提交][状态][讨论版][命题人:admin]题目描述One day, Snuke was given a permutation of length N, a1,a2,…,aN, from his friend.Find the following:Constraints1≤N≤2...原创 2018-04-19 16:07:32 · 688 阅读 · 0 评论 -
Wannafly挑战赛29 B 白井黑子 (数论+map)
链接:https://ac.nowcoder.com/acm/contest/271/B 来源:牛客网 kuroko 作为常盘台唯一的空间系能力者,在每年例行的能力测试中可绝对不能让 misaka 失望哦,但是由于她的等级只是 level 4「大能力者」,在能力测试中会遇到不少困难。kuroko 是一个凡事都会尽力的好女孩,所以请你帮她算出她最多能完成多少测试吧 对于空间系能力者测试的内容是...原创 2018-11-27 11:58:03 · 200 阅读 · 0 评论 -
Codeforces Round #527 (Div. 3) C. Prefixes and Suffixes (string+multiset+思维)
C. Prefixes and Suffixes time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Ivan wants to play a game with you. He picked some string...原创 2018-12-20 18:04:42 · 281 阅读 · 0 评论 -
Educational Codeforces Round 61 (Rated for Div. 2) D. Stressful Training(贪心+二分)
Educational Codeforces Round 61 (Rated for Div. 2) 题意:有n台电脑要使用,一共m分钟,每台电脑初始电量ai,每分钟消耗bi,若你有一台充电宝,那么每分钟至少冲多少电量,才能保证每分钟所有电脑的电量都是>=0。 题解:首先根据题意可以很清楚的看出来应该可以二分,因为若答案x可行,则答案x+1一定可行(显然 :) ),但...原创 2019-03-11 17:53:29 · 372 阅读 · 0 评论