U446787 qwq

题目描述

一个序列 a, a + d, a + 2\*d, ..., a + n\*d ,问出现了多少次数字 $x$。

输入格式

包含 a、d、n、x。

输出格式

一个整数