Last active
August 16, 2021 09:41
-
-
Save daanta-real/6737c9b3d6b97617e48b1613b005d604 to your computer and use it in GitHub Desktop.
0분이면 false를, 1 ~ 59분이면 true를 리턴하는 정수
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 입력된 분(currM)이 0이면 0, 1 ~ 59분이면 1을 갖게 되는 정수이다. | |
// 1시간단위 선불 PC방에서 1분 이상 이용 시 1시간 요금을 추가로 더할 때 등에 사용한다. | |
// 딱 분단위만 따진다. 초단위로 계산하지는 않으니 다른것을 쓰라. | |
int plusHour_becauseofMinutes = (1 - ((60 - currM) / 60)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment