On-Call Team
시간 제한1초메모리 제한2048 MB
각 엔지니어가 익힌 서비스 집합이 주어질 때, 어떤 k개 서비스가 동시에 고장 나도 서로 다른 엔지니어가 맡을 수 있는 최대 k를 구한다.
문제
An IT company has formed an on-call team of software engineers who will manage their backend services and make sure that these services run without interruption. When services go down, for each service that is down the on-call team must dispatch one member who is familiar with that service to take care of its issue. One team member can handle at most one service at a time. The company wants to evaluate the robustness level of the on-call team, which is defined as the maximum value such that any services that go down simultaneously can be handled by the on-call team.
입력
The first line of input contains two integers () and (), where is the number of engineers and is the number of backend services.
Each of the next lines contains a string of binary digits of length , describing the software engineers' familiarity with the services. The digit on the line is if software engineer is familiar with service , and otherwise.
It is guaranteed that for each of the services there exists at least one software engineer who is familiar with it.
출력
Output a single integer, which is the robustness level of the on-call team.