boj)2133 - 타일 채우기
import java.io.*; public class boj_2133 { static long[] d; static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); public static void main(String[] args) throws IOException { int n = Integer.parseInt(br.readLine()); d = new long[n+1]; d[0] = 1; for (int i = 2; i = 0; j-=2) { d[i] += d[j] * 2; } } System.out.println(d[n]); } } - 마지막 부분에 초점을 맞춤, 일단 n이 홀수일때는 채울 수 있는 방법이 없음 ..
PS/boj
2020. 9. 21. 17:53
링크
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- 프로그래머스 SQL
- GCP
- 모던자바스크립트
- dreamcoding
- 이펙티브자바 스터디
- 이펙티브자바 아이템59
- js array
- ㅇㄷㅇㅈ
- BOJ
- http
- HTTP 완벽 가이드
- js api
- 백기선 스터디
- 이펙티브자바
- 이펙티브자바 아이템60
- 프로그래머스
- 패스트캠퍼스 컴퓨터공학 완주반
- js promise
- 김영한 JPA
- JPA 연관관계 매핑
- 킹수빈닷컴
- REST API
- Spring Security
- 가상 면접 사례로 배우는 대규모 시스템 설계 기초
- 김영한 http
- 드림코딩
- 백준
- JS 딥다이브
- java
- HTTP 완벽가이드
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함