일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- 애완동물
- 세팔로투스
- Blueberry
- 실생묘
- 태그를 입력해 주세요.
- 반려동물
- 스파르탄
- 아기고양이
- 명랑이
- 블루베리
- Wall-E
- UIAlertView setFrame
- 끄니
- 세팔
- creative park
- codility
- 고양이
- paper craft
- PassingCars
- 고양이 산책
- ios
- paper-replika
- cephalotus
- objective-c
- CountDiv
- 종이모형
- 산책묘
- 끈끈이주걱
- 식충식물
- UIAlertView addSubView
Archives
- Today
- Total
꼼시월드
[codility] CountDiv 본문
int solution(int A, int B, int K) { double a = A; double b = B; int ret = floor(b/K) - floor((a - 1)/K); // b의 몫 - a보다 작은수의 몫 return ret; }
int / int 는 소수점을 버리는 점을 주의해야 한다
'iOS' 카테고리의 다른 글
[codility] Binary Gap (0) | 2023.02.22 |
---|---|
[codility] Task name: PassingCars (0) | 2015.06.10 |
UIAlertView addSubView ios7 (0) | 2014.01.29 |
중첩된 딕셔너리의 키를 이용하여 정렬하기 (0) | 2014.01.24 |
ios 기기의 회전 값 구하기 (0) | 2014.01.21 |
Comments