분류 전체보기
-
boj)14391 - 종이 조각PS/boj 2020. 12. 9. 18:44
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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 import java.io.*; import java.util.StringTokenizer; public class boj_14391 { static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); static StringTokenizer st; static int row, col, max; static int[][] m..
-
비트마스크 (BitMask)Algorithm 2020. 12. 9. 10:17
비트 연산 (Bitwise operation) & (and) | (or) ~ (not) ^ (xor) not 연산의 경우에는 자료형에 따라 결과가 달라진다. A = 83 = 0101,0011(2) ~A = 1010,1100(2) / 8비트 자료형인 경우 ~A = 1111,1111 1111,1111 1111,1111 10101,100(2) / 32비트 자료형인 경우 Shift Operators 1. shift left (> 1 = 101(2) = 5 10 >> 2 = 10(2) = 2 10 >> 3 = 1(2) = 1 30 >> 1 = 1111(2) = 15 1024 >> 10 = 1(2) = 10 A > B 는 A / 2^B 와 같다. (A+B) / 2 는 (A+B) >> 1 로 쓸 수 있다. 비트 연산..
-
boj)2529 - 부등호PS/boj 2020. 12. 8. 13:28
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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 import java.io.*; import java.util.*; public class boj_2529 { static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); static StringTokenizer st; static List ans = new ArrayList(); static int n; static char[] input; static c..
-
gitetc 2020. 12. 7. 10:30
git --version git config --list 설정 리스트 보기 git config --global -e 편집환경으로 열기 git config -- global core.editor "code" git config -- global core.editor "code --wait" git config --global user.name "" git config --global user.email "" git config user.name git config user.email git config --global core.autocrlf input 윈도우는 true 맥은 input git 명령어 -옵션 git init ls -al : 숨긴거도보임 ls : 숨기거는 안보임 rm -rf .git : 깃 ..
-
boj)15661 - 링크와 스타트PS/boj 2020. 12. 6. 16:08
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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 import java.io.*; import java.util.*; public class boj_15661 { static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); static StringTokenizer st; static int N; static int min = Integer.MAX_VALUE; sta..
-
4. 제어문Java 2020. 12. 4. 10:26
목표 자바가 제공하는 제어문을 학습하세요. 학습할 것 선택문반복문 과제 과제 0. JUnit 5 학습하세요. 인텔리J, 이클립스, VS Code에서 JUnit 5로 테스트 코드 작성하는 방법에 익숙해 질 것. 과제 1. live-study 대시 보드를 만드는 코드를 작성하세요. 깃헙 이슈 1번부터 18번까지 댓글을 순회하며 댓글을 남긴 사용자를 체크할 것. 참여율을 계산하세요. 총 18회 중에 몇 %를 참여했는지 소숫점 두자리까지 보여줄 것. Github 자바 라이브러리 참고 깃헙 API를 익명으로 호출하는데 제한이 있기 때문에 본인의 깃헙 프로젝트에 이슈를 만들고 테스트를 하시면 더 자주 테스트할 수 있습니다. 과제 2. LinkedList를 구현하세요. LinkedList에 대해 공부하세요. 정수를 ..
-
boj)14889 - 스타트와 링크PS/boj 2020. 12. 3. 11:26
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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 import java.io.*; import java.util.*; public class boj_14889 { static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); static StringTokenizer st; static int N; static int min = Integer.MAX_VALU..
-
boj)14501 - 퇴사PS/boj 2020. 12. 2. 08:35
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 32 33 34 35 36 37 38 39 40 import java.io.*; import java.util.StringTokenizer; public class boj_14501 { static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); static StringTokenizer st; static int N, max; static int[] days; static int[] values; public static void main(String[] args) thro..