水题
文章平均质量分 77
cherkid
这个作者很懒,什么都没留下…
展开
-
Sort the Array
Being a programmer, you like arrays a lot. For your birthday, your friends have given you an array a consisting of n distinct integers. Unfortunately, the size of a is too small. You want a bigger ar原创 2017-10-26 23:42:47 · 267 阅读 · 0 评论 -
System of Equations
Furik loves math lessons very much, so he doesn't attend them, unlike Rubik. But now Furik wants to get a good mark for math. For that Ms. Ivanova, his math teacher, gave him a new task. Furik solved原创 2017-10-26 23:46:56 · 223 阅读 · 0 评论 -
Mike and palindrome
Mike has a string s consisting of only lowercase English letters. He wants to change exactly one character from the string so that the resulting one is a palindrome. A palindrome is a string that rea原创 2017-11-06 19:43:30 · 200 阅读 · 0 评论 -
Caisa and Pylons
Caisa solved the problem with the sugar and now he is on the way back to home. Caisa is playing a mobile game during his path. There are (n + 1) pylons numbered from 0 to n in this game. The pylon wi原创 2017-11-06 19:47:28 · 358 阅读 · 0 评论 -
I'm bored with life
Holidays have finished. Thanks to the help of the hacker Leha, Noora managed to enter the university of her dreams which is located in a town Pavlopolis. It's well known that universities provide stud原创 2017-10-24 23:52:16 · 172 阅读 · 0 评论 -
Number of Ways
You've got array a[1], a[2], ..., a[n], consisting of n integers. Count the number of ways to split all the elements of the array into three contiguous parts so that the sum of elements in each part原创 2017-10-22 23:38:04 · 342 阅读 · 0 评论 -
Joysticks
Friends are going to play console. They have two joysticks and only one charger for them. Initially first joystick is charged at a1 percent and second one is charged at a2 percent. You can connect c原创 2017-10-22 23:33:13 · 196 阅读 · 0 评论 -
GukiZ and Contest
Professor GukiZ likes programming contests. He especially likes to rate his students on the contests he prepares. Now, he has decided to prepare a new contest. In total, n students will attend, and b原创 2017-10-22 23:20:53 · 342 阅读 · 0 评论 -
Round House
Vasya lives in a round building, whose entrances are numbered sequentially by integers from 1 to n. Entrance n and entrance 1 are adjacent. Today Vasya got bored and decided to take a walk in the y原创 2017-10-24 23:55:43 · 208 阅读 · 0 评论