上一页 1 2 3 4 5 6 ··· 21 下一页
摘要: Description A permutation of length n is an array containing each integer from 1 to n exactly once. For example, q = [4, 5, 1, 2, 3] is a permutation. 阅读全文
posted @ 2016-05-25 17:26 Randolph87 阅读(543) 评论(0) 推荐(0)
摘要: Meanwhile, the kingdom of K is getting ready for the marriage of the King's daughter. However, in order not to lose face in front of the relatives, th 阅读全文
posted @ 2016-05-25 17:26 Randolph87 阅读(241) 评论(0) 推荐(0)
摘要: Problem Description We are going to distribute apples to n children. Every child has his/her desired number of apple A1,A2,A3,⋯An , Ai indicates the i 阅读全文
posted @ 2016-05-25 17:26 Randolph87 阅读(307) 评论(0) 推荐(0)
摘要: Ivan wants to make a necklace as a present to his beloved girl. A necklace is a cyclic sequence of beads of different colors. Ivan says that necklace 阅读全文
posted @ 2016-05-25 17:26 Randolph87 阅读(840) 评论(0) 推荐(0)
摘要: Vika has an infinite sheet of squared paper. Initially all squares are white. She introduced a two-dimensional coordinate system on this sheet and dre 阅读全文
posted @ 2016-05-25 17:26 Randolph87 阅读(333) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2016-05-25 17:25 Randolph87 阅读(50) 评论(0) 推荐(0)
摘要: 第一次参加这种有奖励的比赛(没错,我就是为猴子而去的一年没怎么碰代码果然手生,还是用没写多久的C++,差点全跪了T1数学奇才琪露诺:首先定义一个函数F(x),F(x)=x的各个数位上的数字和然后在区间[l,r]求F(x)k*p+q=x的所有x,按升序输出T1题解:枚举x肯定是不行的,F(x)的值只有... 阅读全文
posted @ 2015-07-26 17:49 Randolph87 阅读(576) 评论(2) 推荐(0)
摘要: 【问题描述】Lwins_7k+ (GYZ),Synophia大陆首屈一指的天才魔法师,创造了一个新魔法:雷神领域。这个魔法会首先在地面上形成正方网格魔法阵列,然后在某些位置召唤雷电轴标。注意:一个位置只能有一个雷电轴标存在。雷电轴标总出现在正方网格魔法阵列的顶点处,所以我们可以用一个有序整数对(x_... 阅读全文
posted @ 2015-07-23 00:38 Randolph87 阅读(1056) 评论(0) 推荐(1)
摘要: DescriptionInputOutput输出文件包括n 行,每行一个实数,精确到小数点后3 位。第i 行的实数表 示结点i 在社交网络中的重要程度。Sample Input4 41 2 12 3 13 4 14 1 1Sample Output1.0001.0001.0001.000HINT为1... 阅读全文
posted @ 2015-07-23 00:26 Randolph87 阅读(234) 评论(0) 推荐(0)
摘要: DescriptionFJ's cows really hate getting wet so much that the mere thought of getting caught in the rain makes them shake in their hooves. They have d... 阅读全文
posted @ 2015-07-23 00:26 Randolph87 阅读(183) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 21 下一页