Computer Science, asked by Anonymous, 10 months ago

A computer programming contests requires team of 5 members each. Write a python program that asks for the number of players, and then give the number of teams and number of players left. ​

Answers

Answered by mahenderkaur055
1

Explanation:

Given number of matches played, find number of teams in tournament

Given an integer M which is the number of matches played in a tournament and each participating team has played a match with all the other teams. The task is to find how many teams are there in the tournament.

Examples:

Input: M = 3

Output: 3

If there are 3 teams A, B and C then

A will play a match with B and C

B will play a match with C (B has already played a match with A)

C has already played matches with team A and B

Total matches played are 3

Input: M = 45

Output: 10

Similar questions