
import java.util.Scanner; public class Day5 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = 0, M = 0; //수의 개수, 나누어 떨어지는 숫자 int x = 0, y = 0;//쌍 (x, y) int time = 0; System.out.print("숫자 개수, 나누어 떨어지는 숫자 입력 : "); N = sc.nextInt();//5 입력시 M = sc.nextInt(); int[] numArr = new int[N+1];//6개 받을 수 있음 System.out.print("숫자" + N + "개 입력 : "); for (int i = 0; i < num..

내가 짠 코드 import java.util.Scanner; public class Day4 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = 0, m = 0;//n = NxN, m = 입력받는 횟수 int sum = 0; System.out.print("NxN의 N과 입력받을 횟수 입력 : "); n = sc.nextInt(); m = sc.nextInt(); int[][] numArr = new int[n][n]; for (int i = 0; i < n; i++) {//n만큼 입력 받기 for (int j = 0; j < n; j++) { numArr[i][j] = sc.nextInt(); } ..

내가 짠 코드 import java.util.Scanner; public class Day2 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = 0; double M = 0; double sum = 0; double avg = 0; System.out.print("과목 개수 : "); num = sc.nextInt(); double[] score = new double[num]; System.out.print("점수 입력 : "); for (int i = 0; i ..

Day1. 첫 백준 문제로 숫자의 합을 풀었다. import java.util.Scanner; public class Day1 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = 0, num = 0, sum = 0;//자릿수, 숫자, 합 System.out.print("자릿수 입력 : "); n = sc.nextInt(); System.out.print("숫자 입력 : "); num = sc.nextInt(); for (int i = 0; i < n; i++) { sum += num%10; num /= 10; } System.out.println(sum); } } 나는 이렇게 작성했고 결과도 잘 나왔..
- Total
- Today
- Yesterday
- 티스토리챌린지
- Apache
- Spring
- controller
- 클라우드
- 이클립스
- 자바
- Java
- 백준자바
- 톰캣
- tomcat
- docker컨테이너
- dockerspring
- 트리
- BigDecimal
- docker
- MySQL
- 오블완
- 백준
- docker배포
- docker앱배포
- 알고리즘
- 웹스퀘어
- websquare
- 백준알고리즘
- 그리드
- db
- SpringBoot
- 노드
- google cloud run
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |