A. Inscribed FiguresDescription:The math faculty of Berland State University has suffered the sudden drop in the math skills of enrolling students. This year the highest grade on the entrance math ...

D.TravelerDescription:The famous traveler BaoBao is visiting the Dream Kingdom now. There are $n$ cities in Dream Kingdom, numbered from $1$ to $n$. The cities are connected by directed roads. For ...

A. Stock ArbitragingDescription:Welcome to Codeforces Stock Exchange! We're pretty limited now as we currently allow trading on one stock, Codeforces Ltd. We hope you'll still be able to make profi...

A. Neko Finds GrapesDescription:On a random day, Neko found $n$ treasure chests and $m$ keys. The $i$-th chest has an integer $a_i$ written on it and the $j$-th key has an integer $b_j$ on it. Neko...

A. Reverse a SubstringDescription:You are given a string $s$ consisting of $n$ lowercase Latin letters.Let's define a substring as a contiguous subsegment of a string. For example, "acab" is a subs...

A. Maxim and BiologyDescription:Today in the scientific lyceum of the Kingdom of Kremland, there was a biology lesson. The topic of the lesson was the genomes. Let's call the genome the string "ACT...

A. Restoring Three NumbersDescription:Polycarp has guessed three positive integers $a$, $b$ and $c$. He keeps these numbers in secret, but he writes down four numbers on a board in arbitrary order ...

题目链接Problem:http://assets.codeforces.com/rounds/1090/a73f8d/en.pdfProblem A. Company Merging数列合并花费是将最大值小的数列所有元素加上最大值与最大值大的数列的最大值的差值，求 $n$ 个数列合并的花费记录每个数列的最大值、数字数量，求出所有数列的最大值依次计算求和即可#include <bits...

题目链接Problem:http://codeforces.com/gym/102021/attachments/download/8067/2018-german-collegiate-programming-contest-gcpc-18-en.pdfProblem B Battle Royale求两点不经过小圆的最短路径当两点可以直线段到达时两点距离即为最短距离当两点中间被小圆阻挡时两...

A. Diverse StringsDescription:A string is called diverse if it contains consecutive (adjacent) letters of the Latin alphabet and each letter occurs exactly once. For example, the following strings ...

A. Hello SCPC 2018!Description:Here are some facts about the problem set of this contest: It consists of 12 problems written in English. The first 4 problems are the easiest according to their est...

A. Detective BookDescription:Ivan recently bought a detective book. The book is so interesting that each page of this book introduces some sort of a mystery, which will be explained later. The $i$-...

A. Even SubstringsDescription:You are given a string $s=s_1s_2\dots s_n$ of length $n$, which only contains digits $1$, $2$, ..., $9$.A substring $s[l \dots r]$ of $s$ is a string $s_l s_{l + 1} s_...

A. Edit DistanceDescription:A binary string is a non-empty sequence of $0$'s and $1$'s, e.g., 010110, 1, 11101, etc. The edit distance of two binary strings $S$ and $T$, denoted by $edit(S, T)$, is...

A. Game 23Description:Polycarp plays "Game 23". Initially he has a number $n$ and his goal is to transform it to $m$. In one move, he can multiply $n$ by $2$ or multiply $n$ by $3$. He can perform ...

题目链接Problems:https://codeforces.com/gym/101987/attachments/download/7921/20182019-acmicpc-asia-seoul-regional-contest-en.pdfProblem A Circuits求两条与 $x$ 轴平行的线与矩形相交的最大数目两条线必定在某个矩形的上边界或下边界上，离散上下边界纵坐标并用...

题目链接Problems:https://codeforces.com/gym/101982/attachments/download/7897/20182019-acmicpc-pacific-northwest-regional-contest-div-1-en.pdfProblem A. Exam你和朋友一起写一些判断题，现知两人答案以及朋友正确题数，求你最多正确的题数分别统计和朋友答...

A. Mischievous Problem SetterDescription:Mr. Sheep is participating in a programming contest. Mr. Panda, the mischievous problem setter gives him some “hints” on the difficulty level of the problem...

A. Sea BattleDescription:In order to make the "Sea Battle" game more interesting, Boris decided to add a new ship type to it. The ship consists of two rectangles. The first rectangle has a width of...