ГлавнаяСборникиТурнирыРазделыФорумыУчастникиПечатьПомощьО системе

Сборники > Functions > задача:


50112 - Random Numbers

Задачи сборника

• 50251 - Sum of the Biggest Neighbors
• 50253 - Max Discount
• 50265 - Palindrome-k
• 50013 - John's Tasks
• 50014 - Palindromes
• 50060 - Total Salary Paid
• 50067 - The Number of Points in a ...
• 50087 - Three Times
• 50112 - Random Numbers
• 50156 - Armstrong Numbers - 2
• 50157 - Palindromic Numbers
• 50019 - Pig Latin
• 50054 - Sum of the given digits
• 50063 - Palindromic Numbers
• 50075 - Random Password Generator
• 50152 - Prime Factors of a Number
• 50169 - Prime Factorization

Обратная связь

Если у вас есть предложения или пожелания по работе Contester, посетите форум сайта www.contester.ru.

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
Question by Ibrahim Mesecan. Сложность Альфа

Write a program with a function that produces m random numbers between -n and +n. m and n are taken from the user. For example if n is 10 and m is 6 than the program might produce something like:
-2, 5, 10, 1, -10, 4,

Input specification
There will be two numbers (m and n) in the input where 0 ≤ m ≤ 10.000 and 1 ≤ n ≤ 1000.
Output specification
Show m random numbers which are between -n and +n.
Input Output 1
3 5
4 2 -3

Для отправки решений необходимо выполнить вход.

www.contester.ru