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 ...