Codeforce
xiaoshengMr
Inner speace
展开
-
CodeForce Football
One day Vasya decided to have a look at the results of Berland 1910 Football Championship’s finals. Unfortunately he didn’t find the overall score of the match; however, he got hold of a profound descr原创 2017-12-01 16:00:15 · 655 阅读 · 0 评论 -
G- 3- palindrome
In the beginning of the new year Keivan decided to reverse his name. He doesn’t like palindromes, so he changed Naviek to Navick.He is too selfish, so for a given n he wants to obtain a string of n cha原创 2017-12-01 20:24:14 · 223 阅读 · 0 评论 -
acm #define
#define INF 0x3f3f3f3f0x3f3f3f3f的十进制是1061109567,也就是10^9级别的 ,可等同于无穷大typedef longlong ll [0,2^64-1] typedef usigned long long ll [-2^63,2^63-1]原创 2017-12-01 20:54:31 · 364 阅读 · 0 评论 -
CodeForce H - Sereja and Stairs
ereja loves integer sequences very much. He especially likes stairs.Sequence a1, a2, …, a|a| (|a| is the length of the sequence) is stairs if there is such index i (1 ≤ i ≤ |a|), that the following con原创 2017-12-01 22:03:06 · 247 阅读 · 0 评论 -
CodeForce l-Friends and Presents
You have two friends. You want to present each of them several positive integers. You want to present cnt1 numbers to the first friend and cnt2 numbers to the second friend. Moreover, you want all pres原创 2017-12-02 11:16:16 · 412 阅读 · 0 评论