문제의 조건에서는 Also assume that it is impossible for there to be a negative quantity of any type of person (students, faculty, or visitors) present in Mines Market at any given time. 이라며 어느 유형의 사람도 음수가 되는 경우가 없다 하지만
제출번호 99165749: d[a]-=int(c) 로 작성한 코드는 맞았습니다를 받았고
제출번호 99165774: d[a]=max(0,d[a]-int(c)) 로 작성한 코드는 틀렸습니다를 받았습니다.
uihyun26 1년 전 1
문제의 조건에서는 Also assume that it is impossible for there to be a negative quantity of any type of person (students, faculty, or visitors) present in Mines Market at any given time. 이라며 어느 유형의 사람도 음수가 되는 경우가 없다 하지만
제출번호 99165749: d[a]-=int(c) 로 작성한 코드는 맞았습니다를 받았고
제출번호 99165774: d[a]=max(0,d[a]-int(c)) 로 작성한 코드는 틀렸습니다를 받았습니다.
이를 미루어보아 어느 한 유형의 사람이 음수가 되는 경우의 데이터가 있는 것 같습니다.