cf/mirror

Game on Sum (Easy Version)

CF
1628D12100· master3s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
7
3 3 2
2 1 10
6 3 10
6 4 10
100 1 1
4 4 0
69 4 20
Output
6
5
375000012
500000026
958557139
0
49735962
1628D1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)