04 2020 档案
摘要:There is a rectangular grid of n rows of m initially white cells each. Arkady performed a certain number (possibly zero) of operations on it. In the i
阅读全文
摘要:Overlooking the captivating blend of myriads of vernal hues, Arkady the painter lays out a long, long canvas. Arkady has a sufficiently large amount o
阅读全文
摘要:The city of Fishtopia can be imagined as a grid of 4 rows and an odd number of columns. It has two main villages; the first is located at the top left
阅读全文
摘要:A necklace can be described as a string of links (' ') and pearls ('o'), with the last link or pearl connected to the first one. You can remove a link
阅读全文
摘要:纯粹记录一下打cf中的学校Group的训练比赛的天数 w周d天 正式赛不记录 补题应该也不记录oㅅo 2020/5/5 最近都在做板刷集训题太多了不记录了,再记就烦了^^
阅读全文
摘要:JATC loves Banh mi (a Vietnamese food). His affection for Banh mi is so much that he always has it for breakfast. This morning, as usual, he buys a Ba
阅读全文
摘要:JATC and his friend Giraffe are currently in their room, solving some problems. Giraffe has written on the board an array a1, a2, ..., an of integers,
阅读全文
摘要:An accordion is a string (yes, in the real world accordions are musical instruments, but let's forget about it for a while) which can be represented a
阅读全文
摘要:You are given q queries in the following form: Given three integers li, ri and di, find minimum positive integer xi such that it is divisible by di an
阅读全文
摘要:Every superhero has been given a power value by the Felicity Committee. The avengers crew wants to maximize the average power of the superheroes in th
阅读全文
摘要:Every superhero has been given a power value by the Felicity Committee. The avengers crew wants to maximize the average power of the superheroes in th
阅读全文
摘要:Let's call an array of non negative integers a1,a2,…,an a k extension for some non negative integer k if for all possible pairs of indices 1≤i,j≤n the
阅读全文
摘要:n boys and m girls came to the party. Each boy presented each girl some integer number of sweets (possibly zero). All boys are numbered with integers
阅读全文
摘要:A. A pile of stones Vasya has a pile, that consists of some number of stones. n times he either took one stone from the pile or added one stone to the
阅读全文
摘要:A. Dreamoon and Ranking Collection Example: input 5 6 2 3 1 1 5 7 10 1 100 100 11 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 4 57 80 60 40 20 output: 5 101 2 2 60
阅读全文
摘要:STL 中栈的使用方法(stack) 头文件: 定义: stack栈名。 cf: 基本操作: push(x) 将x加入栈中,即入栈操作 pop() 出栈操作(删除栈顶),只是出栈,没有返回值 top() 返回第一个元素(栈顶元素) size() 返回栈中的元素个数 empty() 当栈为空时,返回
阅读全文