#D. 练36.2 不定方程求解

    Type: Default 1000ms 256MiB

练36.2 不定方程求解

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

说明

给定正整数aabbcc。求不定方程 ax+by=cax+by=c 关于未知数xxyy的所有非负整数解组数。

输入格式

一行,包含三个正整数aabbcc,两个整数之间用单个空格隔开。每个数均不大于10001000

输出格式

一个整数,即不定方程的非负整数解组数。

样例

2 3 18
4

测试2

Not Attended
Status
Done
Rule
IOI
Problem
6
Start at
2023-11-9 14:45
End at
2023-11-9 16:45
Duration
2 hour(s)
Host
Partic.
0