일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- 머신러닝
- 프로그래머스
- 매트랩
- 코딩테스트
- 개발자
- 방통대
- MATLAB
- zeros
- mpnp
- 위니펙
- 조지아텍
- C++
- EOI
- 기본
- 컴퓨터과학과
- LV1
- 딥러닝
- omscs
- leetcode
- cpp
- 방송통신대학교
- machine learning
- LAA
- 캐나다 영주권
- 알고리즘
- Deep learning
- 주정부이민
- 온라인석사
- Plotting
- 선형대수
Archives
- Today
- Total
목록개발 로그 (114)
Byte by Byte

주어진 n 에 대하여 아래 조건이 성립하는 가지수를 도출. if n ==15 더하는 수는 자연수이며, 연속이어야함. 15 = 1 + 2 + 3 + 4 + 5 15 = 4 + 5 + 6 15 = 7 + 8 15 = 15 4가지. #include #include using namespace std; int solution(int n) { int answer = 0; int i = 1; while(i < n) { int sum = 0; int j = i; while(sum < n) { sum += j; j++; if(sum == n) answer++; } i++; } answer++; return answer; }
개발 로그/알고리즘
2021. 6. 14. 14:03

#include #include using namespace std; vector solution(vector progresses, vector speeds) { vector answer; int multiple =0; int cnt =0; for(int i =0; i = 100) { cnt++; i++; if (i == progresses.size()) break; } answer.push_back(cnt); } return answer; }
개발 로그/알고리즘
2021. 1. 4. 13:46