Logo
(追記) (追記ここまで)

10412번 - Facility Locations 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 256 MB28101066.667%

문제

The HDWBP Inc. has n clients and needs to service these clients by opening k facilities. Each opened facility can serve any number of clients and each client must be served by an open facility. There are m potential locations for these k facilities. The cost of serving client j at potential location i is a non-negative integer cij . These costs satisfy a locality property: for two clients j and j' and two facilities i and i', we have cij ≤ ci'j + ci'j' + cij'. Given the costs, the CEO of HDWBP Inc. ultimately wants to know the cheapest way to open k facilities and assign clients to these open facilities. For now, he needs your help to determine if it is possible to do this task without any cost (i.e. with cost zero).

입력

The input consists of a single test case. The first line contains three integers m, n, k where 1 ≤ m ≤ 100, 1 ≤ n ≤ 100 and 1 ≤ k ≤ m. Each of the next m lines contains n non-negative integers where the jth integer in the ith line is cij ≤ 10 000.

출력

Display yes if it is possible to do the task with cost zero; otherwise, display no.

제한

예제 입력 1

3 2 2
0 2
1 1
2 0

예제 출력 1

yes

예제 입력 2

3 3 2
0 2 2
1 1 1
2 2 0

예제 출력 2

no

힌트

출처

ICPC > Regionals > North America > Rocky Mountain Regional > 2014 Rocky Mountain Regional Contest D번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /