WEB_OVERFLOW Telegram 1384
#todo написати функцію будь-якою мовою програмування, яка приймає два параметри — суму S та кількість N, і повертає масив із N випадкових чисел, що у сумі дорівнюють S.

Наприклад:
S = 100, N = 3 => [25, 54, 21]
S = 100, N = 3 => [4, 23, 73]
S = 100, N = 5 => [14, 33, 9, 12, 32]
👍91



tgoop.com/web_overflow/1384
Create:
Last Update:

#todo написати функцію будь-якою мовою програмування, яка приймає два параметри — суму S та кількість N, і повертає масив із N випадкових чисел, що у сумі дорівнюють S.

Наприклад:
S = 100, N = 3 => [25, 54, 21]
S = 100, N = 3 => [4, 23, 73]
S = 100, N = 5 => [14, 33, 9, 12, 32]

BY Web Overflow 🇺🇦


Share with your friend now:
tgoop.com/web_overflow/1384

View MORE
Open in Telegram


Telegram News

Date: |

Write your hashtags in the language of your target audience. Find your optimal posting schedule and stick to it. The peak posting times include 8 am, 6 pm, and 8 pm on social media. Try to publish serious stuff in the morning and leave less demanding content later in the day. Read now For crypto enthusiasts, there was the “gm” app, a self-described “meme app” which only allowed users to greet each other with “gm,” or “good morning,” a common acronym thrown around on Crypto Twitter and Discord. But the gm app was shut down back in September after a hacker reportedly gained access to user data. Healing through screaming therapy
from us


Telegram Web Overflow 🇺🇦
FROM American