포럼
문제 ICPC00169

J. Judging Troubles

설명

The NWERC organisers have decided that they want to improve the automatic grading of the submissions for the contest, so they now use two systems: DOMjudge and Kattis. Each submission is judged by both systems and the grading results are compared to make sure that the systems agree. However, something went wrong in setting up the connection between the systems, and now the jury only knows all results of both systems, but not which result belongs to which submission! You are therefore asked to help them figure out how many results could have been consistent.

제약
입력 형식

The input consists of:
- one line with one integer \(n\) (\(1\leq n \leq 10^5\)), the number of submissions;
- \(n\) lines, each with a result of the judging by DOMjudge, in arbitrary order;
- \(n\) lines, each with a result of the judging by Kattis, in arbitrary order.

Each result is a string of length between \(5\) and \(15\) characters (inclusive) consisting of lowercase letters.

출력 형식

Output one line with the maximum number of judging results that could have been the same for both systems.

예제 1
입력
5
correct
wronganswer
correct
correct
timelimit
wronganswer
correct
timelimit
correct
timelimit
출력
4
문제 정보

생성자가 기록되지 않았습니다.

출처 ICPC NWERC 2014

평가 및 의견

J. Judging Troubles

개요
출제자 난이도 Unrated 레이팅 미적용 의견 0 / 1 공개 집계 (커뮤니티 난이도, 주요 주제, 품질)는 의견이 충분히 모이면 공개됩니다.

Log in to rate problems.

개별 의견

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

풀이 제출

J. Judging Troubles

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