dotorya   6년 전

https://www.acmicpc.net/board/...

위와 같은 문제가 P = 0인 데이터에 대해 존재합니다. 따라서,

1. P = 0인 경우 (0, 2)와 (1, 1)을 모두 정답처리해주는 스페셜 저지를 추가해주시거나
2. 문제 조건에 'If there are multiple solutions with the fewest total number of socks, pick the solution with the fewest number of red socks.'를 추가해 주시면 감사하겠습니다.

startlink   5년 전

수정했습니다.

댓글을 작성하려면 로그인해야 합니다.