boj)15590 - 1, 2, 3 더하기 5
import java.util.*; public class boj_15990 { static final long mod = 1000000009L; static final int limit = 100000; static long[][] d = new long[limit+1][4]; public static void main(String args[]) { Scanner sc = new Scanner(System.in); for (int i=1; i= 0) { d[i][1] = d[i-1][2] + d[i-1][3]; if (i == 1) { d[i][1] = 1; } } if (i-2 >= 0) { d[i][2] = d[i-2][1] + d[i-2][3]; if (i == 2) { d[i][2] = 1; }..
PS/boj
2020. 9. 17. 14:13
링크
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- Spring Security
- 가상 면접 사례로 배우는 대규모 시스템 설계 기초
- JPA 연관관계 매핑
- dreamcoding
- 이펙티브자바 아이템60
- GCP
- js promise
- 이펙티브자바 스터디
- REST API
- java
- 백준
- JS 딥다이브
- 백기선 스터디
- 김영한 JPA
- 김영한 http
- 프로그래머스
- 패스트캠퍼스 컴퓨터공학 완주반
- 이펙티브자바
- ㅇㄷㅇㅈ
- http
- 킹수빈닷컴
- BOJ
- js api
- 프로그래머스 SQL
- HTTP 완벽가이드
- 드림코딩
- HTTP 완벽 가이드
- js array
- 모던자바스크립트
- 이펙티브자바 아이템59
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함