Official
C - A x B + C Editorial by evima
For each pair of positive integers such that , a positive integer such that is uniquely determined. Therefore, it is sufficient to count the number of such pairs of positive integers .
When is fixed, the number of possible is . Therefore, we could solve the problem by performing exhaustive search on from to .
Sample code in Python: https://atcoder.jp/contests/abc179/submissions/16844575
posted:
last update: