Computer Science, asked by knightknight70960, 1 month ago

Which tool can be used to find out the total matches played by all the
teams?​

Answers

Answered by xiann
1

Answer:

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  

Explanation:

Similar questions