cf/mirror

Collatz Conjecture

CF
1982B1200· pupil1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
13
1 3 1
2 3 1
24 5 5
16 3 2
2 2 1
1337 18 1
1 2 144133
12345678 3 10
998244353 2 998244353
998244353 123456789 998244352
998244354 998241111 998244352
998244355 2 9982443
1000000000 1000000000 1000000000
Output
2
1
1
2
3
1338
1
16936
1
21180097
6486
1
2
1982B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)