본문 바로가기

전체 글

(93)
03. 이중 반복문 중첩 반복문 구현하기 ❓ 0~39 까지의 숫자 중 짝수를 4*5 배열로 출력 ✨ 결과화면(권장 풀이 기준) 💡 나의 풀이코드 public class _03_이중반복문 { public static void main(String[] args) { for(int i=0; i 열 수 결과화면 정렬맞게 출력 -> printf(“변수의 형식을 포함한 문장”, 변수1, 변수2, ...) 사용 💡 권장 풀이코드 public class _03_이중반복문 { public static void main(String[] args) { for(int i=0; i
[백준/01-13] 10172 개 NO.10172 풀이코드 public class Main { public static void main(String[] args) { System.out.println("|\\_/|"); System.out.println("|q p| /}"); System.out.println("( 0 )\"\"\"\\"); System.out.println("|\"^\"` |"); System.out.println("||_/=\\\\__|"); } } 📌 풀이 방법 제어문자만 잘 알고 있으면 쉽게 풀 수 있다
[백준/01-12] 10171 고양이 NO.10171 풀이코드 public class Main { public static void main(String[] args) { System.out.println("\\ /\\"); System.out.println(" ) ( \')"); System.out.println("( / )"); System.out.println(" \\(__)|"); } } 📌 풀이 과정 이스케이스문자 신경써서 작성 고양이 너무 귀엽당
[백준/01-11] 11382 꼬마 정민 NO.11382 풀이코드 import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); long A = scanner.nextLong(); long B = scanner.nextLong(); long C = scanner.nextLong(); System.out.println(A+B+C); } } 📌 풀이과정 최댓값 10^12 => int 범위(약 20억) 초과 => long 타입 진행 필요
[백준/01-10] 2588 곱셈 NO. 2588 풀이코드 import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int A = scanner.nextInt(); int B = scanner.nextInt(); scanner.close(); // A * B의 1의자리 수 = A * (B%10) System.out.println(A * (B%10)); // A * B의 10의자리 수 = A * (B%100/10) // ex. 385 일때 385%100=85 -> 85/10 = 8 System.out.println(A * (B%100/10)); // A * B의 100의자..
[백준/01-09] 10430 나머지 NO.10430 풀이코드 // 1. Scanner 이용 import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int A = scanner.nextInt(); int B = scanner.nextInt(); int C = scanner.nextInt(); System.out.println((A+B)%C); System.out.println(((A%C)+(B%C))%C); System.out.println((A*B)%C); System.out.println(((A%C)*(B%C))%C); } } // 2. BuffedReader 사용 i..
[VOCA] DAY03 📑 기출단어 01. d a. 내구성이 좋은, 오래가는 더보기 💡 durable 📌 fragile -ly 는 보통 부사모양이라 부사로 착각하기 쉬움. 명사 09. e v. 지지하다, 보증[홍보]하다 더보기 💡 endorse 10. d v. 밝히다, 폭로하다, 드러내다 더보기 💡 disclose 📌 dis(부정) + close(닫다) => 밝히다, 드러내다 11. c v. (중요 인물 사건을) 기념하다 더보기 💡 commemorate 12. t v. 끝나다, 종점에 달하다 더보기 💡 terminate 📌 day1 에 나왔었던 것. 기억 안나면 복습 13. a n. 계좌 / 장부 / 계정 / 설명 v. 설명하다(for), 차지하다(for) 더보기 💡 account 📌 account for = explain 1..
[VOCA] DAY02 📑 기출단어 01. h v. 망설이다, 주저하다 더보기 💡 hesitate 02. a v. 붙이다, 첨부하다 더보기 💡 attach 📌 attached file / document : 첨부된 자료/서류 03. a n. 박수, 갈채 더보기 💡 applause 📌 LC P3 & P4 자주 나오는 단어 04. i n. 주제, 쟁점 / 문제 / 호 / 발행 v. 발부[발행]하다, 발표[공표]하다 더보기 💡 issue 📌 address issues : 문제를 해결하다 해석 필요 acquire : 획득하다. 습득하다, 인수하다 2. Singer Jack Butler will meet with several fan club members following this afternoon's concert shortly s..