cf/mirror

Sum of Fractions

CF
2204F2200· master2s512 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
5 4
2 3 5 2 3
0 1 2 10
Output
232923695
332748137
931694761
133099397
2204F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)