HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Contests > CEN_114 Midterm A > problem:


1. 50467 - Random Numbers

CEN_114 Midterm A

Start: May.14.2020 at 12:00:01 AM
Finish: May.31.2020 at 11:55:59 PM
The contest is finished!
• Contest scoreboard

Guest
• Review clarifications (1)

Contest problems

• 1. 50467 - Random Numbers
• 10. 51093 - rgb2gray
• 11. 50410 - Zero Padding
• 12. 50470 - Close Pairs - Revised
• 13. 50735 - Top M Products
• 14. 51094 - Passing the course
• 15. 50804 - Marathon
• 3. 50390 - Total Salary Paid
• 4. 50528 - Rock-Scissors-Paper

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.
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