RiseOJ는 solved.ac와 제휴 관계가 없습니다. 티어 아이콘 © solved.ac. solved.ac
포럼
COCI00165

Ekipa

스페셜 저지 — 출력을 사용자 정의 프로그램으로 검사하므로 여러 정답이 인정될 수 있습니다.
Silver IV 실버 IV
난이도
1s
시간 제한
32MB
메모리 제한
0
맞았습니다!!
0
제출 수
0.0%
정답률
레이팅

의견: 0

설명

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 the contest and the 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 \le M \le 100\), \(1 \le K \le N \le 100\)).

Each of the next \(M\) lines describes the 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 the corresponding category (\(0 \le s \le 10\)). Pairs are given in order of decreasing knowledge. Students are numbered from \(1\) to \(N\). In each line, every student appears exactly once.

출력 형식

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

First sample description: There are two categories. In the first category, the best student is number \(2\), with knowledge \(3.0\). He is followed by student \(1\) (knowledge \(0.2\)), and then student \(3\) (knowledge \(0.1\)). The best solution is to choose students \(2\) and \(3\), in categories \(1\) and \(2\) respectively.

서브태스크
서브태스크점수설명

Test 1

10점

None

Test 2

10점

None

Test 3

10점

None

Test 4

10점

None

Test 5

10점

None

Test 6

10점

None

Test 7

10점

None

Test 8

10점

None

Test 9

10점

None

Test 10

10점

None

예제 1
입력
3 2 2
2 3.0 1 0.2 3 0.1
3 1.0 2 0.5 1 0.2
출력
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
출력
15.0
문제 정보

riseoj 작성

출처 COCI 2010/2011 Contest 3

평가 및 의견

Ekipa

개요
출제자 난이도 Silver IV 실버 IV 의견 0 / 50 공개 집계 (커뮤니티 난이도, 주요 주제, 품질)는 의견이 충분히 모이면 공개됩니다.

Log in to rate problems.

개별 의견

아직 의견이 없습니다. 자격이 된다면 위 양식에서 가장 먼저 평가해 보세요.

풀이 제출

Ekipa

게스트로 둘러보고 있습니다. 로그인하면 풀이를 제출하고 진행 상황을 확인할 수 있습니다. 로그인하고 제출하기
공개
C++20 Tab 들여쓰기 · Ctrl+/ 주석 토글 · Enter 자동 들여쓰기
1 1 1 0 공백: 4 · UTF-8