07 2020 档案
摘要:【原题】 You are given a garland consisting of nn lamps. States of the lamps are represented by the string ss of length nn. The ii-th character of the str
阅读全文
摘要:【原题】 题目描述 The Byteotian Cave is composed of nnn chambers and n−1n-1n−1 corridors that connect them. For every pair of chambers there is unique way to
阅读全文
摘要:【原题】 Description Rain has pummeled the cows' field, a rectangular grid of R rows and C columns (1 <= R <= 50, 1 <= C <= 50). While good for the grass,
阅读全文
摘要:【原题】 Description The citizens of Bytetown, AB, could not stand that the candidates in the mayoral election campaign have been placing their electoral
阅读全文
摘要:【原题】 The map of Bertown can be represented as a set of nn intersections, numbered from 11 to nn and connected by mm one-way roads. It is possible to m
阅读全文
摘要:【原题】 Description Keeping track of all the cows can be a tricky task so Farmer John has installed a system to automate it. He has installed on each cow
阅读全文
摘要:【原题】 Eugene likes working with arrays. And today he needs your help in solving one challenging task. An array cc is a subarray of an array bb if cc ca
阅读全文
摘要:【原题】 Description Tour operator Your Personal Holiday organises guided bus trips across the Benelux. Every day the bus moves from one city S to another
阅读全文
摘要:【原题】 Note that the memory limit is unusual. You are given a multiset consisting of nn integers. You have to process queries of two types: add integer
阅读全文
摘要:【原题】 Description Every cow's dream is to become the most popular cow in the herd. In a herd of N (1 <= N <= 10,000) cows, you are given up to M (1 <=
阅读全文
摘要:【原题】 This is a harder version of the problem. In this version n≤500000n≤500000 The outskirts of the capital are being actively built up in Berland. Th
阅读全文
摘要:【原题】 Mad scientist Mike has constructed a rooted tree, which consists of n vertices. Each vertex is a reservoir which can be either empty or filled wi
阅读全文

浙公网安备 33010602011771号