上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 60 下一页
摘要: Problem Statement Aoki loves numerical sequences and trees. One day, Takahashi gave him an integer sequence of length N, a1,a2,…,aN, which made him wa 阅读全文
posted @ 2018-06-12 09:09 蒟蒻JHY 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 蜜汁打表题、、 (首先L=1和L=N的情况过于傻逼(而且是特殊情况),可以先写出来,然后剩下的L的做法在下面) 首先你要写一个打表程序,找出{1,2,....,n} 乘若干个 循环唯一的轮换可以搞出的所有排列,然后统计一下对于每个i,总环数=i 的排列的个数 cnt[i]。 如果你规律找的好的话,是 阅读全文
posted @ 2018-06-11 20:59 蒟蒻JHY 阅读(311) 评论(0) 推荐(0) 编辑
摘要: Problem Statement One day, Takahashi was given the following problem from Aoki: You are given a tree with N vertices and an integer K. The vertices ar 阅读全文
posted @ 2018-06-11 20:47 蒟蒻JHY 阅读(317) 评论(0) 推荐(0) 编辑
摘要: Problem Statement You are participating in a quiz with N+M questions and Yes/No answers. It's known in advance that there are N questions with answer 阅读全文
posted @ 2018-06-11 19:43 蒟蒻JHY 阅读(358) 评论(0) 推荐(0) 编辑
摘要: Discription Arkady's code contains nn variables. Each variable has a unique name consisting of lowercase English letters only. One day Arkady decided 阅读全文
posted @ 2018-06-11 16:47 蒟蒻JHY 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 简单最短路计数。 阅读全文
posted @ 2018-06-11 15:36 蒟蒻JHY 阅读(267) 评论(0) 推荐(0) 编辑
摘要: Discription Moriarty has trapped n people in n distinct rooms in a hotel. Some rooms are locked, others are unlocked. But, there is a condition that t 阅读全文
posted @ 2018-06-10 17:12 蒟蒻JHY 阅读(363) 评论(0) 推荐(0) 编辑
摘要: Discription Ivan is fond of collecting. Unlike other people who collect post stamps, coins or other material stuff, he collects software bugs. When Iv 阅读全文
posted @ 2018-06-10 15:58 蒟蒻JHY 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 记得这是一个组合数卷积的板子题。 ∑ C(A,i) * C(B,D-i) = C(A+B,D) 然后就直接做了。 阅读全文
posted @ 2018-06-09 20:06 蒟蒻JHY 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 神TM有是结论题,我讨厌结论题mmp。 杨氏矩阵了解一下(建议去维基百科)。 反正就是推柿子,使劲推,最后写起来有一点小麻烦,但是在草稿纸(然鹅我木有啊)上思路清晰的话还是没问题的。 阅读全文
posted @ 2018-06-09 19:14 蒟蒻JHY 阅读(210) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 60 下一页