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

주어진 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