2020.9.11BNUZ练习 B - Count Subrectangles You are given an array a of length n and array b of length m both consisting of only integers 0 and 1. Consider a matrix c of size n×m formed by following ...
B - Ternary String CodeForces - 1354B You are given a string s such that each its character is either 1, 2, or 3. You have to choose the shortest contiguous substring of s such that it contains each ...
本周依然是div3的第一 然后开始题解吧 A - Stock Arbitraging Welcome to Codeforces Stock Exchange! We’re pretty limited now as we currently allow trading on one stock, Codeforces Ltd....
[2020-3-13]BNUZ套题比赛div3题解 很开心,本次再次蝉联了训练赛的第一名。排名如下 A - Row You’re given a row with $nnn$ chairs. We call a seating of people “maximal” if the two following conditions ...
目录 A: Row B: Bus of Characters C: Cut \'em all D: Infinity Gauntlet E: High School: Become Human F: Three displays A: Row solution 给字符串最前面和最后面各加个零,表示空座位。任何人旁边都没有人即不...