cf/mirror

Square-Free Division (hard version)

CF
1497E22500· grandmaster2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
3
5 2
18 6 2 4 1
11 4
6 2 2 8 9 1 3 6 3 9 7
1 0
1
Output
1
2
1
1497E2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)