随笔分类 - codeforces
摘要:C. Ray Tracing C. Ray Tracing There are k sensors located in the rectangular room of size n × m meters. The i-th sensor is located at point (xi, yi).
阅读全文
摘要:D. Dense Subsequence D. Dense Subsequence You are given a string s, consisting of lowercase English letters, and the integer m. One should choose some
阅读全文
摘要:D. Kefa and Dishes time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output When Kefa came to the
阅读全文
摘要:One-Way Reform Description There are n cities and m two-way roads in Berland, each road connects two cities. It is known that there is no more than on
阅读全文
摘要:C. Polycarp at the Radio time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Polycarp at
阅读全文
摘要:D. Lakes in Berland time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output The map of Berland i
阅读全文
摘要:D. Mishka and Interesting sum D. Mishka and Interesting sum Little Mishka enjoys programming. Since her birthday has just passed, her friends decided
阅读全文
摘要:D. Once Again... You are given an array of positive integers a1, a2, ..., an × T of length n × T. We know that for any i > n it is true that ai = ai -
阅读全文
摘要:C. GCD Table C. GCD Table The GCD table G of size n × n for an array of positive integers a of length n is defined by formula Let us remind you that t
阅读全文
摘要:E. Alice, Bob, Oranges and Apples E. Alice, Bob, Oranges and Apples Alice and Bob decided to eat some fruit. In the kitchen they found a large bag of
阅读全文
摘要:D. Phillip and Trains D. Phillip and Trains The mobile application store has a new game called "Subway Roller". The protagonist of the game Philip is
阅读全文
摘要:D. Dima and Lisa D. Dima and Lisa Dima loves representing an odd number as the sum of multiple primes, and Lisa loves it when there are at most three
阅读全文
摘要:C. Gennady the Dentist time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output C. Gennady the Den
阅读全文
摘要:D. Remainders Game D. Remainders Game Today Pari and Arya are playing a game called Remainders. Pari chooses two positive integer x and k, and tells A
阅读全文
摘要:F. Ant colony F. Ant colony Mole is hungry again. He found one ant colony, consisting of n ants, ordered in a row. Each ant i (1 ≤ i ≤ n) has a streng
阅读全文
摘要:D. Friends and Subsequences D. Friends and Subsequences Mike and !Mike are old childhood rivals, they are opposite in everything they do, except progr
阅读全文
摘要:A. Mike and Cellphone time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output 题目链接 A. Mike and Ce
阅读全文
摘要:C. NP-Hard Problem time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. NP-Hard Problem ti
阅读全文
摘要:C. Heap Operations 题目链接 C. Heap Operations 题目链接 Petya has recently learned data structure named "Binary heap". The heap he is now operating with allow
阅读全文

浙公网安备 33010602011771号