일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- creative park
- UIAlertView addSubView
- 끄니
- 블루베리
- 스파르탄
- Wall-E
- codility
- 종이모형
- 산책묘
- UIAlertView setFrame
- 세팔로투스
- paper-replika
- 고양이
- PassingCars
- ios
- paper craft
- 반려동물
- CountDiv
- Blueberry
- 실생묘
- 세팔
- 식충식물
- cephalotus
- 끈끈이주걱
- objective-c
- 아기고양이
- 고양이 산책
- 애완동물
- 태그를 입력해 주세요.
- 명랑이
Archives
- Today
- Total
목록objective-c (2)
꼼시월드
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
2015. 6. 10. 14:11
https://codility.com/c/intro/demoQQDY3P-6DY int solution(NSMutableArray *A) { // write your code in Objective-C 2.0 int east = 0, west = 0; for (NSNumber *num in A) { int dir = [num intValue]; (dir) ? west++ : east++; } int wc = 0; int ec = 0; int ret = 0; for (int i = 0 ; i 1000000000) re..
iOS
2015. 6. 10. 10:22