Geometric Progression
567C1700· expert1s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
5 21 1 2 2 4
Output
4
Sample 2of 3
Input
3 11 1 1
Output
1
Sample 3of 3
Input
10 31 2 6 2 3 6 9 18 3 9
Output
6
58%
567C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)