Problem Description
Loading...
Problem Analysis
Check whether a number exists in an arithmetic sequence.
Just subtract the first term and see whether the result is divisible by c.
Note the case where c is 0.
cpp
| |
Problem link: 【CodeForces】[675A]Infinite Sequence