Live2d Test Env
上一页 1 ··· 55 56 57 58 59 60 61 62 63 ··· 101 下一页
摘要: You are given n segments on a line. There are no ends of some segments that coincide. For each segment find the number of segments it contains. Input 阅读全文
posted @ 2018-03-15 21:09 nimphy 阅读(392) 评论(2) 推荐(0) 编辑
摘要: Devu wants to decorate his garden with flowers. He has purchased n boxes, where the i-th box contains fi flowers. All flowers in a single box are of t 阅读全文
posted @ 2018-03-15 20:42 nimphy 阅读(537) 评论(0) 推荐(0) 编辑
摘要: Times:5000ms; Memory limit:262144 kB 给定字符串S(|S|<=5000),下标由1开始。然后Q个问题(Q<=1e6),对于每个问题,给定L,R,回答区间[L,R]里有多少个回文串。 请想出两种或者以上的方法。 分界线 方法1:区间DP。 容斥一下,dp[i][j] 阅读全文
posted @ 2018-03-14 21:00 nimphy 阅读(174) 评论(0) 推荐(0) 编辑
摘要: Genos recently installed the game Zuma on his phone. In Zuma there exists a line of n gemstones, the i-th of which has color ci. The goal of the game 阅读全文
posted @ 2018-03-14 16:43 nimphy 阅读(334) 评论(0) 推荐(0) 编辑
摘要: Ivan has n different boxes. The first of them contains some balls of n different colors. Ivan wants to play a strange game. He wants to distribute the 阅读全文
posted @ 2018-03-14 16:01 nimphy 阅读(532) 评论(0) 推荐(0) 编辑
摘要: Today Pari and Arya are playing a game called Remainders. Pari chooses two positive integer x and k, and tells Arya k but not x. Arya have to find the 阅读全文
posted @ 2018-03-13 17:51 nimphy 阅读(401) 评论(0) 推荐(1) 编辑
摘要: Sereja has a bracket sequence s1, s2, ..., sn, or, in other words, a string s of length n, consisting of characters "(" and ")". Sereja needs to answe 阅读全文
posted @ 2018-03-13 10:56 nimphy 阅读(483) 评论(0) 推荐(0) 编辑
摘要: Pete and Bob invented a new interesting game. Bob takes a sheet of paper and locates a Cartesian coordinate system on it as follows: point (0, 0) is l 阅读全文
posted @ 2018-03-12 20:59 nimphy 阅读(266) 评论(0) 推荐(0) 编辑
摘要: To stay woke and attentive during classes, Karen needs some coffee! Karen, a coffee aficionado, wants to know the optimal temperature for brewing the 阅读全文
posted @ 2018-03-12 19:16 nimphy 阅读(374) 评论(0) 推荐(0) 编辑
摘要: We already know of the large corporation where Polycarpus works as a system administrator. The computer network there consists of n computers and m ca 阅读全文
posted @ 2018-03-12 16:30 nimphy 阅读(330) 评论(0) 推荐(0) 编辑
上一页 1 ··· 55 56 57 58 59 60 61 62 63 ··· 101 下一页