일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 프로그래머
- 자바알고리즘
- 프로세스
- 데이터베이스
- 자바개발자
- 자바
- 알고리즘
- 혼공컴운
- SpringBoot
- 자바의정석
- db
- Java
- 프로그래머스
- 리액트
- 백엔드
- 코딩
- 소셜로그인구현
- 국비지원코딩
- 코드업
- Codeup
- React
- 스프링부트
- 백엔드개발자
- 개발자
- 국비지원
- 자바스크립트
- 개발자일기
- 미라클모닝
- 프로그래밍
- 운영체제
- Today
- Total
목록Codeup (10)
초코딩(chocoding)
package example01; import java.util.Scanner; public class Ex05_Chapter7 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int st, ed; for (int i = 1; i

난이도 급상승................. 처음에 접근할 때, 어쨋든 컴퓨터는 왼쪽에서 오른쪽으로, 위에서 아래로 출력하기 때문에 숫자간의 관계를 생각해봤다. 뭐... 관계성이 있기는 했는데 내가 억지로 끼워맞춘 감이 없지 않아 있었다. 근데 숫자의 관계성으로만 접근하기에는 너무 한계가 많다고 느꼈고 이 방법이 아닌 .. 느낌이 들어서 chatGPT한테 힌트 좀 달라고 했다. 지피티가 준 힌트는 바로 바로 고로쿠만.... 고로케였구만..... (🥯 고로케 임티 없네) 숫자의 연관성을 고려해서 왼쪽에서 오른쪽으로, 위에서 아래로 출력하는 것이 아니라 진짜 숫자 순서대로 (달팽이 모양으로) 찍는 것이었어!!!!!!!!!! 힌트를 보고 나서 힌트를 보지 않았으면 평생 문제를 풀 수 없었겠다... 라는 생각이..

import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int[] numArr = new int[10]; int k; for (int i = 0; i < numArr.length; i++) { numArr[i] = sc.nextInt(); } k = sc.nextInt(); System.out.println(numArr[k - 1]); sc.close(); } }

import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); int callR..

import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); String in..

import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { Scanner sc = new Scanner(System.in); int count = 0; int r = sc.nextInt(); int g = sc.nextInt(); int b = sc.nextInt(); for (int i = 0; i < r; i++) { for (int j = 0; j < g; j++) { for (int k = 0; k < b; k++) { System.out.printf("%d %d %d %n", i, j, k); count++; } } } System.out.println(count);..

import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num1 = sc.nextInt(); int num2 = sc.nextInt(); for (int i = 1; i
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); float f = scanner.nextFloat(); int numInt = (int)f; int numFloat = (int)((f - numInt) * 1000000); System.out.println(numInt); System.out.println(numFloat); } } import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new ..
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String str = scanner.nextLine(); System.out.println(str); } } import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; public class Main { public static void main(Stri..
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String str = scanner.nextLine(); System.out.println(str); } } import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; public class Main { public static void main(Str..