cf/mirror

Coprime Subsequences

CF
803F2000· candidate master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
3
1 2 3
Output
5
Sample 2of 3
Input
4
1 1 1 1
Output
15
Sample 3of 3
Input
7
1 3 5 15 3 105 35
Output
100
803F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)