[SOLVED] Algothon Assignment 5-Match balls

30.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon Match-balls-lynjck.zip (68.5 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
πŸ”’ Securely Powered by:
Secure Checkout
Rate this product

Match balls

There are N colors balls in a box. If you can get a pair of same color balls you win. find out how many balls you

need to take so that there is at least one matching pair.

Assume that there are indefinite number of balls available with given colors.

Example –

ifN = 5

It means there are indefinite number of 5 different color balls.

Input Format N = Number of colors Constraints

Output Format

Number of balls you need to take

Contest ends in 14 hours

Submissions: SS

Max Score: 100

Difficulty: Medium

More

  • Match-balls-lynjck.zip