Logo Universal Online Judge

UOJ

时间限制:1 s 空间限制:64 MB

#1949. Nadan

Statistics

题面翻译

除了回文,Nadan 还是一位成功的商人,当年轻的软件开发人员开始从事他们的项目时,他会为他们提供资金。 今年,他决定将 K 库纳(克罗地亚货币)分配给 N 个项目,每个项目至少获得一个库纳,所有项目获得不同数量的库纳。 这将永远是可能的。

编写一个程序,对于给定的 N 和 K,找到 K kunas 到 N 个项目的一种可能分布。

题目描述

Alongside being a palindrome, Nadan is also a successful businessman who finances young software developers when they start working on their projects. This year, he decided to distribute K kunas (Croatian currency) to N projects in a way that each project gets at least one kuna and all projects get a different amounts of kunas. This will always be possible.

Write a program which will, for a given N and K, find one possible distribution of K kunas to N projects.

输入格式

The first line contains a positive integer K (100 ≤ K ≤ 1 000 000), number from the task description. The second line contains a positive integer N (1 ≤ N ≤ 100), number from the task description.

第一行包含一个正整数 K (100 ≤ K ≤ 1 000 000),来自任务描述的数字。 第二行包含一个正整数 N (1 ≤ N ≤ 100),来自任务描述的数字。

输出格式

For a chosen money distribution, output the amount of money the first project will get in the first line, the amount of money the second project will get in the second line and so on until the N-th line where you should output the amount of money the N-th project will get.

对于选择的货币分配,输出第一个项目将在第一行获得的货币数量,第二个项目将在第二行获得的货币数量,依此类推,直到第 N 行你应该输出的数量 第 N 个项目将获得的钱。

样例 #1

样例输入 #1

100 
5

样例输出 #1

10
30
20
5
35

样例 #2

样例输入 #2

200 
1

样例输出 #2

200

样例 #3

样例输入 #3

100 
4

样例输出 #3

21
36
12
31

SCORING

在价值 25 分的测试用例中,它将保持 N = 5。

如果您的解决方案输出的分布中所有项目都没有获得不同数量的 kunas,那么您将在该测试用例的可能 5 分中获得 3 分。