注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
小prop trading。oa一半coding一半概率题
- Magic Number Range Counter
A positive integer is magic if its decimal digits include 2, 3, 5, and 7 at least once each. Implement solve(L, R) to count magic numbers in the inclusive range [L, R]. There are up to 20,000 queries, with 1 ≤ L ≤ R ≤ 10^18.
22357 and 73052 are magic. The range [10077, 24391] contains 98 magic numbers.
- Win a series by two games
In each independent game, A wins with probability p, B wins with probability q, and a tie occurs with probability r = 1 − p − q. The series ends when either team leads by two wins. m2, b, t)
Here n is the request count and t contains the arrival timestamps.
- Diagonal of a symmetric table
A 7 × 7 table is symmetric across its main diagonal. Each column contains the integers 1 through 7 exactly once. What is the probability that the main diagonal also contains each integer exactly once? |