#1011
Unrated
EKIPA
시간 제한
1s
메모리 제한
32MB
제출
0
정답
0
맞힌 사람
0
정답 비율
0.0%

문제

Author: Matija Osrečki

In a galaxy far, far away, a programming contest is taking place. Your task is to choose the participants! N students have applied, and each one of them has some knowledge in each of M different categories. Knowledge can be represented as a real number. You can send at most K students to the contest, but no student can compete in more than one category. Multiple students can compete in a single category. For each student, their knowledge of each category is given. Choose participants for a contest and categories they will compete in, so that the sum of knowledge is maximal.

입력

The first line of input contains integers N, M and K (1 ≤ M ≤ 100, 1 ≤ K ≤ N ≤ 100). Each of the next M lines describes knowledge for one category. In each line, there are N pairs (i, s), where i is the index of the student, and s is a positive real number representing their knowledge of corresponding category (0 ≤ s ≤ 10). Pairs are given in order of decreasing knowledge. Students are numbered from 1 to N. In each line, every student will apear exactly once.

출력

The first and the only output line should contain maximum sum of knowledge chosen students can have, with exactly one digit in decimal part.

예제 입력 1

3 2 2
2 3.0 1 0.2 3 0.1
3 1.0 2 0.5 1 0.2

예제 출력 1

4.0

예제 입력 2

4 4 3
4 5.0 2 4.0 3 2.0 1 1.0
2 2.0 3 1.0 1 0.5 4 0.3
4 6.0 3 5.0 2 2.0 1 0.0
1 4.0 2 3.0 4 0.6 3 0.3

예제 출력 2

15.0
코드 제출

코드를 제출하려면 로그인이 필요합니다.

로그인
내 제출
제출 내역이 없습니다.
맞은 사람
아직 맞은 사람이 없습니다.
난이도 투표
Unrated0명 투표
로그인 후 AC 받으면 투표할 수 있습니다.
전체 제출
제출 내역이 없습니다.