
codeforces
文章平均质量分 66
MarioHo
有请各位多多教导
展开
-
C. Equalize (cf 1037 C) - Manthan, Codefest 18 (rated, Div. 1 + Div. 2)
C. Equalize time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You are given two binary strings a and b of the same length. You can p...原创 2018-09-03 18:56:08 · 254 阅读 · 0 评论 -
B. Reach Median (cf 1037 B) - Manthan, Codefest 18 (rated, Div. 1 + Div. 2)
B. Reach Median time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You are given an array a of n integers and an integer s. It is gu...原创 2018-09-03 19:38:28 · 240 阅读 · 0 评论 -
CF C. Maximum Subrectangle【贪心 + dp】
给你一个两个数组 分别n , m 长度 然后给你n个数 m个数 一个x 然后这n + m个数 构成一个矩形 比如 3 3 1 2 3 1 2 3 表:就是for(i=n个数) for (j=m个数) i*j 1 2 3 2 4 6 3 6 9 再通俗点说 n = 2 m = 2 a b ac ad c d ...原创 2018-10-04 21:43:42 · 235 阅读 · 0 评论 -
Codeforces Round #525 (Div. 2) C. Ehab and a 2-operation task
https://www.cnblogs.com/violet-acmer/p/10068786.html 题意: 给定一个长度为 n 的数组a[ ],并且有两种操作: ①将前 i 个数全都加上 x; ②将前 i 个数全都 mod x 要求用不超过 n+1 次操作,使得数组 a[ ] 严格单调递增。 题解: 预备知识补充: 假设 a > b,在什么条件下可以使式子 a%(a-b) == b 成...原创 2018-12-10 23:52:56 · 188 阅读 · 0 评论