03 2017 档案
摘要:A - Remaining Time Time limit : 2sec / Memory limit : 256MB Score : 100 points Problem Statement Dolphin loves programming contests. Today, he will ta
阅读全文
摘要:Description T is a complete binary tree consisting of n vertices. It means that exactly one vertex is a root, and each vertex is either a leaf (and do
阅读全文
摘要:Description n children are standing in a circle and playing the counting-out game. Children are numbered clockwise from 1 to n. In the beginning, the
阅读全文
摘要:Description There are n cities situated along the main road of Berland. Cities are represented by their coordinates — integer numbers a1, a2, ..., an.
阅读全文
摘要:Description One of Timofey's birthday presents is a colourbook in a shape of an infinite plane. On the plane n rectangles with sides parallel to coord
阅读全文
摘要:Description Each New Year Timofey and his friends cut down a tree of n vertices and bring it home. After that they paint all the n its vertices, so th
阅读全文
摘要:Description Young Timofey has a birthday today! He got kit of n cubes as a birthday present from his parents. Every cube has a number ai, which is wri
阅读全文
摘要:Description Comrade Dujikov is busy choosing artists for Timofey's birthday and is recieving calls from Taymyr from Ilia-alpinist. Ilia-alpinist calls
阅读全文
摘要:Description For the given sequence with n different elements find the number of increasing subsequences with k + 1 elements. It is guaranteed that the
阅读全文
摘要:Description Pashmak's homework is a problem about graphs. Although he always tries to do his homework completely, he can't solve this problem. As you
阅读全文
摘要:Description Parmida is a clever girl and she wants to participate in Olympiads this year. Of course she wants her partner to be clever too (although h
阅读全文
摘要:Description Recently Pashmak has been employed in a transportation company. The company has kbuses and has a contract with a school which has n studen
阅读全文
摘要:Description Pashmak decided to give Parmida a pair of flowers from the garden. There are n flowers in the garden and the i-th of them has a beauty num
阅读全文
摘要:Description Pashmak has fallen in love with an attractive girl called Parmida since one year ago... Today, Pashmak set up a meeting with his partner i
阅读全文
摘要:官方题解:http://www.cnblogs.com/qscqesze/p/6516139.html 喵哈哈村的狼人杀大战(1) 描述 喵哈哈村最近热衷于玩一个叫做狼人杀的游戏! 张小田今天她抽到的是民的身份,按照她的一贯玩法,她不会考虑发言者的发言,她只考虑站队情况。 现在是警上竞选的投票环节,
阅读全文
摘要:无耻的复制大佬的代码 1001 怎么写模拟都过不去,只能用数学方式写了 合理的摆放就两种,一种平分,一种一个小的和两个大的放在一块 我们取最小值 1002 没啥好说的,注意等于0的情况 1003 如果做过HDU1222题估计会好很多,结论就是gcd(2*n-2,k)==1时,所有格子可以踩中 HDU
阅读全文
摘要:官方题解:http://www.cnblogs.com/qscqesze/p/6480284.html 哗啦啦村的刁难(1) 描述 哗啦啦村作为喵哈哈村的对头,于是他们准备给喵哈哈村一个好看。 哗啦啦村的头号长老——鱼先生,就提出了以下问题: 给你三个木棍,问你这三个木棍,是否能够组成一个非退化的三
阅读全文
摘要:官方题解: http://www.cnblogs.com/qscqesze/p/6418555.html#3623453 喵哈哈村的魔法石 描述 传说喵哈哈村有三种神奇的魔法石:第一种魔法石叫做人铁石,拥有A的能量;第二种魔法石叫做地冈石,拥有B的能量;而第三种,则是最神奇的天玄石,拥有无可比拟的C
阅读全文