Weapons

查看题解 查看答案
题目描述
Time Limit: 1000 ms
Memory Limit: 256 mb

Xiaoxia in order to be able to unify the whole country, and he need to prepare a lot of weapons, but he didn't have enough money, so he was very upset, he everywhere to raise money, in order to strengthen his power by hook, he found in the world each hero, one day a little summer finally put money enough of a good time to call the blacksmith rushed weapons, xiaoxia particularly fond of sword and knife, so he ordered the blacksmith just made the two weapons,There are a total of K people, xiaoxia only can make n only weapon, In order to show their fairness, everyone must have the same number of weapons. Now that y knife has been made, I want to know the number of all swords that blacksmiths can make and export them in ascending order

输入输出格式
输入描述:
The first line of input contains three integers y,k,n (1≤y,k,n≤1e9;(n/k)≤1e5)
输出描述:
Print a space-delimited list of integers -- all possible x values in ascending order. You should print every possible value of x exactly once. If there is no such value x print an integer -1.
输入输出样例
输入样例#:
10 1 10
10 6 40
输出样例#:
复制
-1
2 8 14 20 26
编辑器外观×
主题
字号 16px
背景
登录后免费刷此题

提交代码后在此处可查看状态