随笔分类 - OJ-codeforces
摘要:D. Shovel Sale There are n shovels in Polycarp's shop. The i-th shovel costs i burles, that is, the first shovel costs 1 burle, the second shovel cost
阅读全文
摘要:A. Splitting in Teams A. Splitting in Teams There were n groups of students which came to write a training contest. A group is either one person who c
阅读全文
摘要:E. Squares and not squares Ann and Borya have n piles with candies and n is even number. There are ai candies in pile with number i. Ann likes numbers
阅读全文
摘要:Every evening Vitalya sets n alarm clocks to wake up tomorrow. Every alarm clock rings during exactly one minute and is characterized by one integer a
阅读全文
摘要:A. Rounding Vasya has a non-negative integer n. He wants to round it to nearest integer, which ends up with 0. If n already ends up with 0, Vasya cons
阅读全文
摘要:A. Hungry Student Problem A. Hungry Student Problem Ivan's classes at the university have just finished, and now he wants to go to the local CFK cafe
阅读全文
摘要:A. Find Extra One You have n distinct points on a plane, none of them lie on OY axis. Check that there is a point after removal of which the remaining
阅读全文
摘要:C. Nephren gives a riddle What are you doing at the end of the world? Are you busy? Will you save us? Nephren is playing a game with little leprechaun
阅读全文
摘要:A. Scarborough Fair Willem is taking the girl to the highest building in island No.28, however, neither of them knows how to get there. Willem asks hi
阅读全文
摘要:A. ACM ICPC In a small but very proud high school it was decided to win ACM ICPC. This goal requires to compose as many teams of three as possible, bu
阅读全文
摘要:E. Maximum Subsequence You are given an array a consisting of n integers, and additionally an integer m. You have to choose some sequence of indices b
阅读全文
摘要:D. Almost Identity Permutations D. Almost Identity Permutations A permutation p of size n is an array such that every integer from 1 to n occurs exact
阅读全文
摘要:A. Local Extrema You are given an array a. Some element of this array ai is a local minimum iff it is strictly less than both of its neighbours (that
阅读全文
摘要:A. Div. 64 Top-model Izabella participates in the competition. She wants to impress judges and show her mathematical skills. Her problem is following:
阅读全文
摘要:C. Bertown Subway The construction of subway in Bertown is almost finished! The President of Berland will visit this city soon to look at the new subw
阅读全文
摘要:A. Borya's Diagnosis It seems that Borya is seriously sick. He is going visit n doctors to find out the exact diagnosis. Each of the doctors needs the
阅读全文
摘要:A. Alex and broken contest time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A. Alex and b
阅读全文
摘要:A. Trip For Meal Winnie-the-Pooh likes honey very much! That is why he decided to visit his friends. Winnie has got three best friends: Rabbit, Owl an
阅读全文
摘要:A. Search for Pretty Integers You are given two lists of non-zero digits. Let's call an integer pretty if its (base 10) representation has at least on
阅读全文
摘要:A. The Artful Expedient After Karen have found the deterministic winning (losing?) strategy for rock-paper-scissors, her brother, Koyomi, comes up wit
阅读全文

浙公网安备 33010602011771号