HUST Online Judge WebBoard
Problem 1076 >> 这个百分之五十错在哪里,目前不是很懂
202104010126 @ 2022-11-02 14:20:32
[ Quote ] [ Edit ] [ Delete ] 1#
```
#include<stdio.h>

int main()
{
int x = 0, y = 0, n = 0, k = 0;
int i = 1;
while (scanf("%d%d%d", &y, &k, &n)!=EOF)
{
if (y >= n || n == 1)
{
printf("-1\n");
continue;
}
for (i; i <= n / k; i++)
{
x = i * k;
if (x > y)
{
printf("%d ", x - y);
}
}
printf("\n");
}return 0;
}
```