随笔分类 -  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). 阅读全文
posted @ 2016-10-09 23:18 MartinEden 阅读(181) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2016-10-09 13:33 MartinEden 阅读(213) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2016-10-08 12:42 MartinEden 阅读(206) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2016-10-07 17:02 MartinEden 阅读(326) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2016-10-03 23:03 MartinEden 阅读(265) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2016-10-03 23:00 MartinEden 阅读(195) 评论(0) 推荐(0)
摘要:D. Mishka and Interesting sum D. Mishka and Interesting sum Little Mishka enjoys programming. Since her birthday has just passed, her friends decided 阅读全文
posted @ 2016-08-13 10:20 MartinEden 阅读(173) 评论(0) 推荐(0)
摘要: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 - 阅读全文
posted @ 2016-07-13 21:19 MartinEden 阅读(268) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2016-07-13 21:09 MartinEden 阅读(165) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2016-07-12 21:09 MartinEden 阅读(264) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2016-07-12 21:05 MartinEden 阅读(181) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2016-07-12 20:43 MartinEden 阅读(225) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2016-07-11 21:22 MartinEden 阅读(194) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2016-07-10 21:15 MartinEden 阅读(213) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2016-07-10 21:10 MartinEden 阅读(364) 评论(0) 推荐(0)
摘要:D. Friends and Subsequences D. Friends and Subsequences Mike and !Mike are old childhood rivals, they are opposite in everything they do, except progr 阅读全文
posted @ 2016-07-09 21:17 MartinEden 阅读(181) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2016-07-07 20:50 MartinEden 阅读(170) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2016-07-06 20:43 MartinEden 阅读(236) 评论(0) 推荐(0)
摘要:C. Heap Operations 题目链接 C. Heap Operations 题目链接 Petya has recently learned data structure named "Binary heap". The heap he is now operating with allow 阅读全文
posted @ 2016-07-06 20:35 MartinEden 阅读(168) 评论(0) 推荐(0)