Team Contest
시간 제한1초메모리 제한1024 MB
능력치가 1에서 10 사이인 프로그래머 N명이 있을 때, 최솟값과 최댓값의 합이 K를 초과하는 세 명 팀을 최대한 많이 만들고 그 수를 구한다.
문제
You are a programming coach at a university. Your university is registering several teams to participate in a programming contest. The programming contest is participated by teams of three programmers.
In your university, there are eligible programmers, numbered from to . For each such that , programmer has a skill level of . The skill level of a team consisting of programmer , , and is .
You want to only register teams with a skill level of strictly more than . Each programmer may only be assigned to at most one registered team. You want to know the maximum number of teams you can register.
제한
- (for each such that )
예제
이 문제는 공개된 예제가 없습니다.