csuoj
文章平均质量分 88
Young_Werther
这个作者很懒,什么都没留下…
展开
-
CSU 1810: Reverse
Description Bobo has a n digits decimal number D=d1 d2…dn (It may have leading zeros). Let R(i,j) denotes number D with digits between the i-th position and j-th position reversed. That is, R(i,j)原创 2016-09-05 16:34:27 · 642 阅读 · 0 评论 -
CSU 1804: 有向无环图
Description Bobo 有一个 n 个点,m 条边的有向无环图(即对于任意点 v,不存在从点 v 开始、点 v 结束的路径)。 为了方便,点用 1,2,…,n 编号。 设 count(x,y) 表示点 x 到点 y 不同的路径数量(规定 count(x,x)=0),Bobo 想知道 除以 (109+7) 的余数。 其中,ai,bj 是给定的数列。 Inp原创 2016-09-04 22:03:45 · 851 阅读 · 0 评论