- Today
- Total
목록CodingTest/Jungol (4)
hye-log

0. 문제 링크 https://www.jungol.co.kr/problem/1707 JUNGOL history 최근 본 문제 www.jungol.co.kr 1. 문제 설명 1) 가장 왼쪽 위의 좌표부터 숫자 대입 2) 오른쪽으로 채워나가다가 아래->왼쪽->위->오른쪽 순으로 채우기 2. 입출력 // input 5 // output 1 2 3 4 5 16 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9 3. 코드 import java.util.*; public class jol1707 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(..

0. 문제 링크 https://www.jungol.co.kr/problem/1329 JUNGOL history 최근 본 문제 www.jungol.co.kr 1. 문제 설명 1) 다음과 같은 모양을 출력하기 2. 입출력 // input 7 // output * *** ***** ******* ***** *** * 3. 코드 import java.util.*; public class jol1329 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); if(!(n > 0 && n

0. 문제 링크 https://www.jungol.co.kr/problem/1719 JUNGOL history 최근 본 문제 www.jungol.co.kr 1. 문제 설명 1) 다음과 같은 삼각형 형태로 출력하기 2. 입출력 // input 5 1 // output * ** *** ** * 3. 코드 import java.util.*; public class jol1719 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); // 삼각형의 높이 int m = sc.nextInt(); // 삼각형의 종류 if(!(n > 0 && n = 1 && m = left && j < rig..

0. 문제 링크 https://www.jungol.co.kr/problem/1523 JUNGOL history 최근 본 문제 www.jungol.co.kr 1. 문제 설명 1) 다음과 같은 삼각형 형태로 출력하기 2. 입출력 // input 3 2 // output *** ** * 3. 코드 import java.util.Scanner; public class jol1523 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); if(n > 100 || m 3) { System.out.println("INPUT ERROR..