일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 소수
- support fragment
- 안드로이드 DBMS
- Github
- oracle
- anr
- 안드로이드 ANR
- java
- 컬렉션
- 깊이우선탐색
- 너비우선탐색
- 알고리즘
- 백준 알고리즘
- db
- DFS
- 안드로이드
- application not responding
- support 라이브러리
- BFS
- SQLite와 Realm 차이점
- 액티비티 ANR
- android support
- 자료구조
- android adapterview
- 백준
- 안드로이드 파일
- 안드로이드 AdapterView
- 소수 알고리즘
- android fragment
- 자바 컬렉션
- Today
- Total
목록2018/09/04 (2)
밍의 기록들😉
문제 소스코드import java.util.Scanner; public class Tobin { private static int N; private static int K; public static int[] ans = new int[30]; public static void main(String[] args) { Scanner sc = new Scanner(System.in); N = sc.nextInt(); K = sc.nextInt(); tobin(N, K, 0); } // n자릿수 1이 k개인 경우의 수 private static void tobin(int n, int k, int index) { if(N == index){ // 인덱스가 자릿수만큼 채워질 경우 출력 for(int i=0; i0..
문제 소스코드 import java.util.Scanner; public class Division2 { private static int N; private static int cnt = 0; static int[] array = new int[20]; public static void main(String[] args) { Scanner sc = new Scanner(System.in); N = sc.nextInt(); division(N, 0, 0); System.out.println(cnt); } private static void division(int n, int sum, int index) { for(int x=n; x>0; x--){ if(index==0){ // 처음 시작 숫자 array..