Problem Description
Loading...
Problem Analysis
Brute-force search works
but it can be optimized based on the problem statement
c must be a multiple of b
so each step can use i+=b
and since c != b
the initial condition can start from i=b+b
cpp
| |
Brute-force search works
but it can be optimized based on the problem statement
c must be a multiple of b
so each step can use i+=b
and since c != b
the initial condition can start from i=b+b
| |
Loading...