摘要:
题目 Consider n's prime factorization is \(n=p_1^{a_1}p_2^{a_2}...p_k^{a_k}\), and \(\lambda(n)=(-1)^{a_1+a_2+...+a_k}\). Calculate the value of \(\sum_ 阅读全文
摘要:
题目 DreamGrid has an interesting permutation of \(1,2,...,n\) denoted by \(a_1,a_2,...a_n\). For each \(1 \le i \le n\), \(f_i = \max\{a_1,a_2...,a_i\} 阅读全文
摘要:
source H - Guessing the Dice Roll 题意 n个人分别猜一个由数字1~6组成长度为L的字符串t。主持人也生成一个由数字1~6组成的字符串s,每次等概率从1~6中取一个数字插入到字符串末尾。当某人猜的字符串成为了s的后缀,就胜利,游戏结束。问每个人获胜的概率。 思路 显然 阅读全文