cf/mirror

Sweet Problem

CF
1263A1100· newbie1s256 MB⌨ stdin/stdout
#math

Examples

Sample 1of 1
Input
6
1 1 1
1 2 1
4 1 1
7 4 10
8 1 4
8 2 8
Output
1
2
2
10
5
9
1263A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)