Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 소수
- Algorithm
- 동적 계획법
- SWEA
- 백준
- 구현
- sw expert academy
- 삼성 기출
- 해커랭크
- C++
- 잠실
- BOJ
- dynamic programming
- 맛집
- koitp
- DP
- BFS
- PS
- 완전탐색
- 알고리즘
- 그리디
- 시뮬레이션
- 브루트포스
- 백트래킹
- dfs
- 스택
- hackerrank
- 에라토스테네스의 체
- 삼성 SDS 대학생 알고리즘 특강
- 다이나믹 프로그래밍
Archives
- Today
- Total
목록Tower Breakers (1)
펭로그
[C++] HackerRank 해커랭크 Tower Breakers
문제링크 : https://www.hackerrank.com/challenges/tower-breakers-1 1234567891011121314151617181920212223242526#include using namespace std; int towerBreakers(int n, int m) { if(m == 1) return 2; if(n % 2) return 1; else return 2;} int main() { int t; cin >> t; for(int i = 0; i > n >> m; int result = towerBreakers(n, m); cout
Study/PS(Algorithm)
2018. 3. 24. 16:19