Question: Code Force Problem 1133C: https://codeforces.com/problemset/problem/1133/C Please write a C code for this question. C. Balanced Team time limit per test: 2 seconds memory limit per
Code Force Problem 1133C: https://codeforces.com/problemset/problem/1133/C
Please write a C code for this question.
C. Balanced Team time limit per test: 2 seconds memory limit per test: 256 megabytes input: standard input output: standard output You are a coach at your local university. There are n students under your supervision, the programming skill of the i-th student is a;. You have to create a team for a new programming competition. As you know, the more students some team has the more probable its victory is! So you have to create a team with the maximum number of students. But you also know that a team should be balanced. It means that the programming skill of each pair of students in a created team should differ by no more than 5. Your task is to report the maximum possible number of students in a balanced team. Input The first line of the input contains one integer n (1
Step by Step Solution
3.45 Rating (165 Votes )
There are 3 Steps involved in it
include include Note prev always contains max team size calculated and in... View full answer
Get step-by-step solutions from verified subject matter experts
