codeforces
素宇
这个作者很懒,什么都没留下…
展开
-
CodeForces - 347C
CodeForces - 347CIt is so boring in the summer holiday, isn't it? So Alice and Bob have invented a new game to play. The rules are as follows. First, they get a set of n distinct integers. And then the原创 2017-06-19 20:15:59 · 329 阅读 · 0 评论 -
CodeForces - 255B
CodeForces - 255BLittle wwl loves different algorithms. Today he has invented a new algorithm just for you. wwl’s algorithm works with string s, consisting of characters “x” and “y”, and uses two follo原创 2017-07-26 10:53:58 · 312 阅读 · 0 评论 -
CodeForces - 255A
CodeForces - 255Awwl is a beginner bodybuilder. Today the gym coach gave him the training plan. All it had was n integers a1, a2, …, an. These numbers mean that wwl needs to do exactly n exercises toda原创 2017-07-26 10:53:20 · 232 阅读 · 0 评论 -
CodeForces - 214B
yxc loves math lessons very much, so he doesn’t attend them, unlike wwl. But now yxc wants to get a good mark for math. For that Ms. lxh, his ACM teacher, gave him a new task. yxc solved the task immed原创 2017-07-26 10:52:45 · 236 阅读 · 0 评论 -
CodeForces 214A
yxc loves math lessons very much, so he doesn’t attend them, unlike wwl. But now yxc wants to get a good mark for math. For that Ms. lxh, his ACM teacher, gave him a new task. yxc solved the task immed原创 2017-07-26 10:52:08 · 267 阅读 · 0 评论 -
CodeForces - 233C
CodeForces - 233CJohn Doe started thinking about graphs. After some thought he decided that he wants to paint an undirected graph, containing exactly k cycles of length 3.A cycle of length 3 is an unor原创 2017-06-19 20:28:45 · 402 阅读 · 0 评论 -
CodeForces - 233B
CodeForces - 233BLet's consider equation:x2 + s(x)·x - n = 0, where x, n are positive integers, s(x) is the function, equal to the sum of digits of number x in the decimal number system.You are given原创 2017-06-19 20:28:11 · 319 阅读 · 1 评论 -
CodeForces - 233A
CodeForces - 233AA permutation is a sequence of integers p1, p2, ..., pn, consisting of n distinct positive integers, each of them doesn't exceed n. Let's denote the i-th element of permutation p as pi原创 2017-06-19 20:27:35 · 334 阅读 · 0 评论 -
CodeForces - 148C
CodeForces - 148C «Next please», — the princess called and cast an estimating glance at the next groom.The princess intends to choose the most worthy groom, this is, the richest one. Whenever she sees原创 2017-06-19 20:26:59 · 199 阅读 · 0 评论 -
CodeForces - 148B
CodeForces - 148BThe princess is going to escape the dragon's cave, and she needs to plan it carefully.The princess runs at vp miles per hour, and the dragon flies at vd miles per hour. The dragon will原创 2017-06-19 20:26:20 · 238 阅读 · 0 评论 -
CodeForces - 148A
CodeForces - 148A«One dragon. Two dragon. Three dragon», — the princess was counting. She had trouble falling asleep, and she got bored of counting lambs when she was nine.However, just counting dragon原创 2017-06-19 20:25:25 · 479 阅读 · 0 评论 -
E - New Year Cards CodeForces - 140B
E - New Year Cards CodeForces - 140BAs meticulous Gerald sets the table, Alexander finished another post on Codeforces and begins to respond to New Year greetings from friends. Alexander has n friends,原创 2017-06-19 20:24:05 · 382 阅读 · 0 评论 -
D - New Year Table CodeForces - 140A
D - New Year Table CodeForces - 140AGerald is setting the New Year table. The table has the form of a circle; its radius equals R. Gerald invited many guests and is concerned whether the table has enou原创 2017-06-19 20:23:07 · 261 阅读 · 0 评论 -
B - Canvas Frames CodeForces - 127B
B - Canvas Frames CodeForces - 127BNicholas, a painter is going to paint several new canvases. Nicholas is sure that the canvases will turn out so great that each one will need framing and being hung o原创 2017-06-19 20:21:52 · 330 阅读 · 0 评论 -
Wasted Time CodeForces - 127A
Wasted Time CodeForces - 127AMr. Scrooge, a very busy man, decided to count the time he wastes on all sorts of useless stuff to evaluate the lost profit. He has already counted the time he wastes sle原创 2017-06-19 20:21:15 · 407 阅读 · 0 评论 -
CodeForces - 255C
CodeForces - 255Cwwl loves sequences of numbers. Recently, he has discovered a new type of sequences which he called an almost arithmetical progression. A sequence is an almost arithmetical progression原创 2017-07-26 10:54:32 · 302 阅读 · 0 评论