크게 어려울 거 없는 문젠데 오답 처리가 되길래 뭔가 이상하다싶어서 질문 게시판을 확인해봤더니
무려 강아지의 수가 정수가 아닌 케이스가 있다고 하네요;;
암만 알파 센타우리 외계인도 나오고 하는 백준이지만 강아지 0.2마리 이건 좀 말이 안 되지않나싶은데 흠..
문제 본문의 내용 상, 로직을 떠올려볼 때 암묵적으로 정수라고 받아들일 수 밖에 없는 문제인 것 같아요.
테스트 케이스의 데이터가 수정되지 않는 한, 본문에 명시가 필요할 것 같습니다.
수정 전
The first line will contain a single integer n that indicates the number of lines that follow. Each line will contain three non-negative numbers d, f, and p for the number of dogs, the amount of food per dog in pounds, and the price of the food per pound.
수정 후
The first line contains a single integer, n, which indicates the number of lines to follow. Each line contains three non-negative numbers, each with a range of real numbers
d, f and p for the number of dogs, the amount of food per dog in pounds and the price of the food per pound.
jamie29 2년 전 2
크게 어려울 거 없는 문젠데 오답 처리가 되길래 뭔가 이상하다싶어서 질문 게시판을 확인해봤더니
무려 강아지의 수가 정수가 아닌 케이스가 있다고 하네요;;
암만 알파 센타우리 외계인도 나오고 하는 백준이지만 강아지 0.2마리 이건 좀 말이 안 되지않나싶은데 흠..
문제 본문의 내용 상, 로직을 떠올려볼 때 암묵적으로 정수라고 받아들일 수 밖에 없는 문제인 것 같아요.
테스트 케이스의 데이터가 수정되지 않는 한, 본문에 명시가 필요할 것 같습니다.
수정 전
수정 후
본문 수정 건의드립니다.