随笔分类 -  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 阅读全文
posted @ 2018-01-03 13:15 starry_sky 阅读(238) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-01-02 12:36 starry_sky 阅读(300) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-01-01 16:05 starry_sky 阅读(225) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2017-12-30 22:08 starry_sky 阅读(293) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2017-12-30 20:27 starry_sky 阅读(260) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2017-12-30 16:00 starry_sky 阅读(286) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2017-12-16 18:47 starry_sky 阅读(277) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2017-12-11 20:03 starry_sky 阅读(250) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2017-12-11 19:50 starry_sky 阅读(273) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2017-12-11 19:35 starry_sky 阅读(343) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2017-11-11 16:51 starry_sky 阅读(222) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2017-11-11 16:45 starry_sky 阅读(232) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2017-11-11 14:10 starry_sky 阅读(297) 评论(0) 推荐(0)
摘要:A. Div. 64 Top-model Izabella participates in the competition. She wants to impress judges and show her mathematical skills. Her problem is following: 阅读全文
posted @ 2017-11-09 13:01 starry_sky 阅读(325) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2017-11-07 23:11 starry_sky 阅读(317) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2017-11-07 20:45 starry_sky 阅读(274) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2017-10-30 14:58 starry_sky 阅读(252) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2017-10-17 23:16 starry_sky 阅读(302) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2017-10-15 18:31 starry_sky 阅读(302) 评论(0) 推荐(0)
摘要:A. The Artful Expedient After Karen have found the deterministic winning (losing?) strategy for rock-paper-scissors, her brother, Koyomi, comes up wit 阅读全文
posted @ 2017-10-15 18:22 starry_sky 阅读(268) 评论(0) 推荐(0)