原文:CF 965 B. Battleship

Arkady is playing Battleship. The rules of this game aren t really important.There is a field of n amp x D n n n cells. There should be exactly one k k k decker on the field, i.e. a ship that is k kce ...

2018-04-30 14:07 0 1298 推荐指数:

查看详情

CF 833 B. The Bakery

B. The Bakery http://codeforces.com/contest/833/problem/B 题意:   将一个长度为n的序列分成k份,每份的cost为不同的数的个数,求最大cost的和。1≤n≤35000,1≤k≤50 a[i]">1&#x2264 ...

Mon Oct 15 23:33:00 CST 2018 0 901
B. Hyperset

http://codeforces.com/contest/1287/problem/B 思路: 俩俩配对确定唯一的第三张就可以。每一张卡片可以用64为整数表示,所以找第三张就是找这个整数有没有。找第三张卡片不能用哈希map,因为有输入数据会导致重复的key比较多,导致超时。回忆起 ...

Tue Jan 07 23:24:00 CST 2020 0 242
B. 攻防演练 题解(思维+倍增)

题目链接 题目思路 对于\(l-1\)找到它\(m\)个字母最接近的位置的最远位置 然后进行倍增即可 代码 ...

Tue Nov 02 04:12:00 CST 2021 0 132
B. Xor of 3 题解(思维+构造)

题目链接 题目思路 官方题解写的很好 但基本想不到。。。还是写个博客记录下 代码 ...

Mon Sep 20 23:27:00 CST 2021 1 89
CF335B

...

Mon Aug 05 05:56:00 CST 2013 0 3119
CF286-B

B. Mr. Kitayuta's Colorful Graph time limit per test 1 second memory limit per test 256 megabytes ...

Fri Feb 13 02:47:00 CST 2015 0 2209
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM