A. Sweet Problem You have three piles of candies: red, green and blue candies: the fi ...
F. Economic Difficulties An electrical grid in Berland palaces consists of grids: main and reserve. Wires in palaces are made of expensive material, so selling some of them would be a good idea Each g ...
2019-11-30 11:43 0 416 推荐指数:
A. Sweet Problem You have three piles of candies: red, green and blue candies: the fi ...
F. Coffee Varieties time limit per test1 second memory limit per test256 megabytes This is the easy version of the problem. You can find the hard ...
F. Equalizing Two Strings You are given two strings s and t both of length n and both consisting of lowercase Latin letters. In one move, you can ...
E. Editor The development of a text editor is a hard problem. You need to implement an extra module ...
题意: 给定n个房间 要给每个房间连上网络 第i个房间连上网络的花费为i 有些房间可以装上路由器 如果装上路由器 那么左边k个和右边k个都可以被装上网络 且装路由器的费用也为i 问最少花费使得所有的房间装上网络 dp 用单调队列优化一下即可 ...
F2. Wrong Answer on test 233 (Hard Version) Your program fails again. This time it gets "Wrong answer on test 233" . This is the harder version ...
B. PIN Codes A PIN code is a string that consists of exactly 4 digits. Examples of possible PIN cod ...
C. Everyone is a Winner! On the well-known testing system MathForces, a draw of n rating units is a ...