[JAVA] Interger와 int의 차이점, == 연산과 equals()의 차이점, Array 와 Array List 차이점 정리 https://velog.io/@dlgosla/JAVA-Interger%EC%99%80-int%EC%9D%98-%EC%B0%A8%EC%9D%B4%EC%A0%90-%EC%97%B0%EC%82%B0%EA%B3%BC-equals%EC%9D%98-%EC%B0%A8%EC%9D%B4%EC%A0%90-Array-%EC%99%80-Array-List-%EC%B0%A8%EC%9D%B4%EC%A0%90-%EC%A0%95%EB%A6%AC Spring/Spring Boot 2023.08.31
시간복잡도 https://velog.io/@123xxx/%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98-%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98%EA%B3%BC-%EA%B3%84%EC%82%B0%EB%B3%B5%EC%9E%A1%EB%8F%84#%E2%99%80%EF%B8%8F-%EC%8B%9C%EA%B0%84-%EB%B3%B5%EC%9E%A1%EB%8F%84-%ED%91%9C%EA%B8%B0%EB%B2%95 [CS] 알고리즘과 계산복잡도 문제를 해결하기 위한 일련의 절차알고리즘이 문제를 해결하는 데 필요한 계산 자원(시간, 메모리 등)의 양을 나타내는 개념입니다. 계산 복잡도를 측정하는 데에는 주로 시간 복잡도(Time complexi velog.io 설명이 잘 되어있어 .. JAVA/JAVA baekjoon 2023.08.31
엑셀 입력 제한(시트 보호) 셀 클릭 후 ctrl + 1 셀서식 기본이 잠금으로 되어있다 잠그고 싶은 셀만 잠금으로 설정하자 이후 검토 → 시트보호 확인 끝 공부/개인적 2023.08.30
11653번 소인수분해 import java.util.*; class Main { public static void change(int num){ int a = 2; while(a*a 1){ System.out.println(num); } } public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); change(num); } } JAVA/JAVA baekjoon 2023.08.30
심심해서 만들어본 가게 매출 대시보드 원재료 입고 현황 입력 시, 단가와 수량 비중이 큰 것의 정보와 원하는 원재료 이름 입력 시 관련 정보 출력(중복방지를 위하여 원재료 옆에 월표시) 작성 칸 월별로 나누어서 작성(식/부자재는 입고재료입력칸에서 작성 한 것을 끌고옴) 손익분기점은 자동으로 끌고와짐 목표수익에 원하는 숫자 기입 시 달성매출 나옴 8~12월 작성칸에 대하여 요약 시트 기준 월 옆(노란색 배경)에 8~12월 입력 시 해당 값 불러옴 해당월, 전월 비교하는 전월대비 당월에 비율을 알아보는 ?월 비율 공부/개인적 2023.08.30
14215번 세 막대 import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int[] value = {a,b,c}; Arrays.sort(value);//내림차순 정렬 ex.10,2,3 int value1 = value[2];//10 int value2 = value[1];//3 int value3 = value[0];//2 if(value1 < value2 + value3 ){ System.out.print(a + b + c); }else{ int re.. JAVA/JAVA baekjoon 2023.08.29
9063번 대지 import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int max_x = Integer.MIN_VALUE; int min_x = Integer.MAX_VALUE; int max_y = Integer.MIN_VALUE; int min_y = Integer.MAX_VALUE; for(int i = 0 ; i < n ; i ++){ int x = sc.nextInt(); int y = sc.nextInt(); max_x = Math.max(max_x,x); min_x = Math.min(min_x,x); max_y = Math.. JAVA/JAVA baekjoon 2023.08.29
1978번 소수 찾기 import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int count = 0; for(int i = 0 ; i < a ; i ++){ int num = sc.nextInt(); boolean isprime = true; //boolean을 사용해서 count if(num JAVA/JAVA baekjoon 2023.08.28
9506번 약수들의 합 import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while(true){ int n = sc.nextInt(); if(n == -1){ break; } int sum = 0; StringBuilder str = new StringBuilder(); for(int i = 1 ; i < n ; i++){ if(n%i == 0){ sum+=i; str.append(i).append(" + "); //1 + ~~ } } if(sum==n){ str.setLength(str.length() - 3); System.out.println(n + " = " + str); .. JAVA/JAVA baekjoon 2023.08.28
2501번 약수구하기 import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int count = 0; for(int i = 1 ; i JAVA/JAVA baekjoon 2023.08.28