• 沒有找到結果。

By the way, John was later eaten by a tiger.

N/A
N/A
Protected

Academic year: 2021

Share "By the way, John was later eaten by a tiger."

Copied!
1
0
0

加載中.... (立即查看全文)

全文

(1)

10633 Rare Easy Problem

N is a random number, which for some reason, is at least two digits. John Doe, a nondescript man, performs an operation on N : he chops off the last digit to form a new number M , and then finds N −M. This excites him in a hard-to-justify way. He then tells you N −M. Thrilled by the fascinating back-story behind this number, you make it your life goal to figure out what N was.

By the way, John was later eaten by a tiger.

Input

Input consists of multiple lines, one line per case. Each line contains a single positive integer between 10 and 10

18

inclusive, giving the value of N − M. Input is terminated by a line containing ‘0’.

Output

For each case, print one line containing the possible values of N in sorted order. Separate consecutive numbers with a single space.

Sample Input 18

0

Sample Output

19 20

參考文獻

相關文件

• By definition, a pseudo-polynomial-time algorithm becomes polynomial-time if each integer parameter is limited to having a value polynomial in the input length.. • Corollary 42

[ Composite ] → Tree [ Composite ] receives a significance order of fields and classifies the input list first by the most significant field, and for each bucket classifies the

Here, a deterministic linear time and linear space algorithm is presented for the undirected single source shortest paths problem with positive integer weights.. The algorithm

More precisely, it is the problem of partitioning a positive integer m into n positive integers such that any of the numbers is less than the sum of the remaining n − 1

We would like to point out that unlike the pure potential case considered in [RW19], here, in order to guarantee the bulk decay of ˜u, we also need the boundary decay of ∇u due to

After the Opium War, Britain occupied Hong Kong and began its colonial administration. Hong Kong has also developed into an important commercial and trading port. In a society

A subgroup N which is open in the norm topology by Theorem 3.1.3 is a group of norms N L/K L ∗ of a finite abelian extension L/K.. Then N is open in the norm topology if and only if

(a) The magnitude of the gravitational force exerted by the planet on an object of mass m at its surface is given by F = GmM / R 2 , where M is the mass of the planet and R is