原创 C. Linova and Kingdom

鏈接:https://codeforces.ml/contest/1337/problem/C Writing light novels is the most important thing in Linova's life. Last

原创 B. Dreamoon Likes Permutations

鏈接:https://codeforces.ml/contest/1330/problem/B The sequence of mm integers is called the permutation if it contains al

原创 E2. Three Blocks Palindrome (hard version)

鏈接:https://codeforces.ml/contest/1335/problem/E2 The only difference between easy and hard versions is constraints. You

原创 D. Carousel

鏈接:https://codeforces.ml/contest/1328/problem/D The round carousel consists of nn figures of animals. Figures are numbe

原创 F. Kate and imperfection

鏈接:https://codeforc.es/contest/1333/problem/F Kate has a set SS of nn integers {1,…,n}{1,…,n}. She thinks that imperfec

原创 C. Ehab and Path-etic MEXs

鏈接:https://codeforces.ml/contest/1325/problem/C You are given a tree consisting of nn nodes. You want to write some lab

原创 C. Dreamoon Likes Coloring

鏈接:https://codeforces.ml/contest/1330/problem/C Dreamoon likes coloring cells very much. There is a row of nn cells. In

原创 H 奇怪的揹包問題增加了

鏈接:https://ac.nowcoder.com/acm/contest/4784/H 有一個容量爲2^{30}230的揹包,和m件物品,第i件物品的體積爲c_ici​,你需要從中選出若干件,使得選出的物品的體積恰好等於揹包容量。這些

原创 E1. Three Blocks Palindrome (easy version)

鏈接:https://codeforces.ml/contest/1335/problem/D The only difference between easy and hard versions is constraints. You

原创 D. Ehab the Xorcist

鏈接:https://codeforces.ml/contest/1325/problem/D Given 2 integers uu and vv, find the shortest array such that bitwise-x

原创 E. Modular Stability

鏈接:https://codeforces.ml/contest/1359/problem/E We define xmodyxmody as the remainder of division of xx by yy (%% opera

原创 G. A/B Matrix

鏈接:https://codeforces.ml/contest/1360/problem/G You are given four positive integers nn, mm, aa, bb (1≤b≤n≤501≤b≤n≤50; 

原创 C. Mixing Water

鏈接:https://codeforces.ml/contest/1359/problem/C There are two infinite sources of water: hot water of temperature hh; c

原创 E. Tree Shuffling

鏈接:https://codeforces.ml/contest/1363/problem/E Ashish has a tree consisting of nn nodes numbered 11 to nn rooted at no

原创 C. Game On Leaves

鏈接https://codeforces.ml/contest/1363/problem/C Ayush and Ashish play a game on an unrooted tree consisting of nn nodes