cf/mirror

Probabilistic Card Game

CF
2203E2200· master4s512 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
5
1 10 3 11 7
Output
0
499122177
665496236
Sample 2of 3
Input
6
23 7 11 24 10 28
Output
0
499122177
1
748683266
Sample 3of 3
Input
9
4 10 7 1 16 5 9 12 2
Output
0
499122178
2
499122178
798595484
831870296
427819010
2203E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)