CF
文章平均质量分 83
键盘上的舞者
这个作者很懒,什么都没留下…
展开
-
CF#195(div2) B:Vasily the Bear and Fly
http://codeforces.com/contest/336/problem/B One beautiful day Vasily the bear painted 2m circles of the same radiusR on a coordinate plane. Circles with numbers from1 to m had centers at poi原创 2013-08-10 03:03:24 · 3184 阅读 · 4 评论 -
CF#248DIV2:A. Kitahara Haruki's Gift
Kitahara Haruki has bought n apples for Touma Kazusa and Ogiso Setsuna. Now he wants to divide all the apples between the friends.Each apple weights 100 grams or 200 grams. Of course Kitahara Haru原创 2014-05-26 13:31:26 · 1995 阅读 · 0 评论 -
CF#215DIV2:B. Sereja and Suffixes
Sereja has an array a, consisting of n integers a1,a2, ..., an. The boy cannot sit and do nothing, he decided to study an array. Sereja took a piece of paper and wrote outm integers l1, l2, ..原创 2013-11-27 01:54:09 · 2731 阅读 · 0 评论 -
CF#215DIV2:C. Sereja and Algorithm
Sereja loves all sorts of algorithms. He has recently come up with a new algorithm, which receives a string as an input. Let's represent the input string of the algorithm asq = q1q2...qk. The algo原创 2013-11-27 01:57:37 · 2356 阅读 · 0 评论 -
CF#215DIV2:A. Sereja and Coat Rack
Sereja owns a restaurant for n people. The restaurant hall has a coat rack withn hooks. Each restaurant visitor can use a hook to hang his clothes on it. Using thei-th hook costs ai rubles. Only o原创 2013-11-27 01:51:27 · 1873 阅读 · 0 评论 -
CF#213DIV2:A Good Number
Let's call a number k-good if it contains all digits not exceedingk (0, ..., k). You've got a numberk and an array a containingn numbers. Find out how many k-good numbers are in a (count each原创 2013-11-20 02:29:00 · 2606 阅读 · 0 评论 -
CF#213DIV2:B The Fibonacci Segment
You have array a1, a2, ..., an. Segment[l, r] (1 ≤ l ≤ r ≤ n) is good ifai = ai - 1 + ai - 2, for alli (l + 2 ≤ i ≤ r).Let's define len([l, r]) = r - l + 1,len([l, r]) is the length of the s原创 2013-11-20 02:30:29 · 2060 阅读 · 0 评论 -
CF#202DIV2:B. Color the Fence
http://codeforces.com/contest/349/problem/BIgor has fallen in love with Tanya. Now Igor wants to show his feelings and write a number on the fence opposite to Tanya's house. Igor thinks that the lar原创 2013-09-28 03:08:03 · 2641 阅读 · 1 评论 -
CF#202DIV2: A. Cinema Line
http://codeforces.com/contest/349/problem/A The new "Die Hard" movie has just been released! There are n people at the cinema box office standing in a huge line. Each of them has a single100原创 2013-09-28 02:56:56 · 2258 阅读 · 0 评论 -
CF#204DIV2:A. Jeff and Digits
http://codeforces.com/contest/352/problem/AJeff's got n cards, each card contains either digit 0, or digit 5. Jeff can choose several cards and put them in a line so that he gets some number. What原创 2013-10-05 13:07:02 · 2493 阅读 · 2 评论 -
CF#196DIV2:A-Puzzles
The end of the school year is near and Ms. Manana, the teacher, will soon have to say goodbye to a yet another class. She decided to prepare a goodbye present for hern students and give each of them原创 2013-08-17 02:37:44 · 2300 阅读 · 0 评论 -
CF#196DIV2:B-Routine Problem
Manao has a monitor. The screen of the monitor has horizontal to vertical length ratioa:b. Now he is going to watch a movie. The movie's frame has horizontal to vertical length ratioc:d. Manao adj原创 2013-08-17 02:48:31 · 2230 阅读 · 0 评论 -
CF#196:DIV2:C-Xenia and Weights
Xenia has a set of weights and pan scales. Each weight has an integer weight from 1 to 10 kilos. Xenia is going to play with scales and weights a little. For this, she puts weights on the scalepans, o原创 2013-08-27 09:42:42 · 2521 阅读 · 1 评论 -
CF#196DIV2:B-Xenia and Ringroad
Xenia lives in a city that has n houses built along the main ringroad. The ringroad houses are numbered 1 throughn in the clockwise order. The ringroad traffic is one way and also is clockwise.Xen原创 2013-08-27 09:36:32 · 2456 阅读 · 0 评论 -
CF197#DIV2:A-Helpful Maths
http://codeforces.com/contest/339/problem/AXenia the beginner mathematician is a third year student at elementary school. She is now learning the addition operation.The teacher has written down th原创 2013-08-27 09:33:53 · 2010 阅读 · 0 评论 -
CF#195(div2) A:Vasily the Bear and Triangle
http://codeforces.com/contest/336/problem/A Vasily the bear has a favorite rectangle, it has one vertex at point(0, 0), and the opposite vertex at point (x, y). Of course, the sides of Va原创 2013-08-10 03:07:49 · 1806 阅读 · 0 评论 -
CF#248DIV2:B. Kuriyama Mirai's Stones(线段树)
Kuriyama Mirai has killed many monsters and got many (namely n) stones. She numbers the stones from 1 to n. The cost of the i-th stone is vi. Kuriyama Mirai wants to know something about these sto原创 2014-05-26 13:32:59 · 2412 阅读 · 1 评论