Live2d Test Env
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 101 下一页
摘要: Two students are playing the following game. There are 2· n points on the plane, given with their coordinates ( xi, yi). Each move player paints the p 阅读全文
posted @ 2018-12-04 16:19 nimphy 阅读(303) 评论(0) 推荐(0) 编辑
摘要: 2186: [Sdoi2008]沙拉公主的困惑 Description 大富翁国因为通货膨胀,以及假钞泛滥,政府决定推出一项新的政策:现有钞票编号范围为1到N的阶乘,但是,政府只发行编号与M!互质的钞票。房地产第一大户沙拉公主决定预测一下大富翁国现在所有真钞票的数量。现在,请你帮助沙拉公主解决这个问 阅读全文
posted @ 2018-12-03 20:44 nimphy 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 2121: 字符串游戏 Description BX正在进行一个字符串游戏,他手上有一个字符串L,以及其他一些字符串的集合S,然后他可以进行以下操作:对 于一个在集合S中的字符串p,如果p在L中出现,BX就可以选择是否将其删除,如果删除,则将删除后L分裂成的左右 两部分合并。举个例子,L='abcd 阅读全文
posted @ 2018-12-03 09:21 nimphy 阅读(341) 评论(0) 推荐(0) 编辑
摘要: 2118: 墨墨的等式 Description 墨墨突然对等式很感兴趣,他正在研究a1x1+a2y2+…+anxn=B存在非负整数解的条件,他要求你编写一个程序,给定N、{an}、以及B的取值范围,求出有多少B可以使等式存在非负整数解。 墨墨突然对等式很感兴趣,他正在研究a1x1+a2y2+…+an 阅读全文
posted @ 2018-12-02 20:19 nimphy 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 2140: 稳定婚姻 Description 我国的离婚率连续7年上升,今年的头两季,平均每天有近5000对夫妇离婚,大城市的离婚率上升最快,有研究婚 姻问题的专家认为,是与简化离婚手续有关。25岁的姗姗和男友谈恋爱半年就结婚,结婚不到两个月就离婚,是典 型的“闪婚闪离”例子,而离婚的导火线是两个人 阅读全文
posted @ 2018-12-02 18:39 nimphy 阅读(375) 评论(0) 推荐(0) 编辑
摘要: 2124: 等差子序列 Description 给一个1到N的排列{Ai},询问是否存在1<=p1<p2<p3<p4<p5<…<pLen<=N (Len>=3), 使得Ap1,Ap2,Ap3,…ApLen是一个等差序列。 给一个1到N的排列{Ai},询问是否存在1<=p1<p2<p3<p4<p5<… 阅读全文
posted @ 2018-12-02 15:12 nimphy 阅读(388) 评论(0) 推荐(0) 编辑
摘要: You are given two integers l l and r r (l≤r l≤r ). Your task is to calculate the sum of numbers from l l to r r (including l l and r r ) such that eac 阅读全文
posted @ 2018-12-01 20:04 nimphy 阅读(413) 评论(0) 推荐(0) 编辑
摘要: 3298: [USACO 2011Open]cow checkers Description 一天,Besssie准备和FJ挑战奶牛跳棋游戏。这个游戏上在一个M*N的棋盘上, 这个棋盘上在(x,y)(0<=x棋盘的左下角是(0,0)坐标,棋盘的右上角是坐标(M-1,N-1)。 Bessie每次都是第 阅读全文
posted @ 2018-12-01 11:58 nimphy 阅读(180) 评论(0) 推荐(0) 编辑
摘要: You are a given a list of integers a 1 ,a 2 ,…,a n a1,a2,…,an and s s of its segments [l j ;r j ] [lj;rj] (where 1≤l j ≤r j ≤n 1≤lj≤rj≤n ). You need t 阅读全文
posted @ 2018-11-30 19:23 nimphy 阅读(532) 评论(0) 推荐(0) 编辑
摘要: Vasya has a tree consisting of n n vertices with root in vertex 1 1 . At first all vertices has 0 0 written on it. Let d(i,j) d(i,j) be the distance b 阅读全文
posted @ 2018-11-30 11:40 nimphy 阅读(275) 评论(0) 推荐(0) 编辑
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 101 下一页