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

33183번 - Micromasters Certificates 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 2048 MB28191568.182%

문제

The Department of Computer Engineering has provided several micromasters, each containing a curriculum. If a student successfully completes all the courses of a micromaster, he will receive the certificate of that micromaster. A course may be included in the curriculum of several micromasters. Soroush, who only thinks about getting a certificate and doesn’t care about the type of certificate, wants to get 3ドル$ micromasters certificates by taking the minimum possible number of courses. The micromasters curriculums are posted on the bulletin board. Help Soroush reach his goal according to the micromasters curriculums.

입력

The input represents a bulletin board. The board consists of at most 400ドル$ rows and 400ドル$ columns. Each micromasters curriculum is encapsulated in a rectangular box. The boundaries of the bulletin board and the curriculum boxes are represented by characters “+”, “-”, and “|” for corners, horizontal sides, and vertical sides, respectively. The curriculum boxes are disjoint (with no characters in common) and each has its own boundary. Each line inside a curriculum box contains at most one course name. Course names consist of alphanumeric and space characters. Course names are not case-sensitive, and spaces do not matter in them. For example, “General math1” and “generalMath 1” are the same. There are at most 50ドル$ curriculum boxes and each box contains at most 30ドル$ courses. It is guaranteed that there are at least 3ドル$ boxes on the board and there is at least 1ドル$ course in each box.

출력

Print a single line containing the minimum number of courses that should be taken by Soroush to get at least 3ドル$ certificates.

제한

예제 입력 1

+-------------------------------------------------+
| +-------------------+ |
| |Algorithm Design | +-------------------+ |
| | Programming | |PROGRAMMING | |
| |Discrete Structures| | Web Prgramming | |
| | Data Structures | | | |
| +-------------------+ | DatabaseDesign | |
| |Software Test | |
| +--------------+ | Patterns | |
| | Python | +-------------------+ |
| +--------------+ |
| +------------------------+ |
| |Programming | |
| | AI | |
| | Algorithm design| |
| |Database Design | |
| +------------------------+ |
+-------------------------------------------------+

예제 출력 1

7

힌트

출처

ICPC > Regionals > Asia West Continent > Iran > 2023 ICPC Asia Tehran Regional Contest F번

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

출처

대학교 대회

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

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