alg2025/src/8/21/strexpect.cpp
2025-08-22 11:14:06 +08:00

14 lines
247 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
假设一个随机数生成器每次随机一个数[1,n]形成一个无限长的字符串s
给定一个长度为m的数那么第一次在s中出现位置的期望是多少
n=2 12 的位置
e[1]=1/2*1+1/2*(e[1]+1)
*/
int main(){
}