cf/mirror

Finite or not?

CF
983A1700· expert1s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
2
6 12 10
4 3 10
Output
Finite
Infinite
Sample 2of 2
Input
4
1 1 2
9 36 2
4 12 3
3 5 4
Output
Finite
Finite
Finite
Infinite
983A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)