This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| 3. ์ ์ฐ๊ฒฐ๋ฆฌ์คํธ์์ ๊ฐ ๋ ธ๋์ ๋ฐ์ดํฐ ๊ฐ์ ํฉ์ ์ถ๋ ฅํ์์ค. | |
| head | |
| -----> 1 -> 3 -> 5 -> 7 -> 9|NULL | |
| */ | |
| #include <stdio.h> | |
| #include <stdlib.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| 2. ๋ค์๊ณผ ๊ฐ์ ์ฐ๊ฒฐ๋ฆฌ์คํธ๋ฅผ ์์ฑํ๊ณ ์ ์ฒด ๋ ธ๋์ ๋ฐ์ดํฐ ๊ฐ์ ์ถ๋ ฅํ์์ค. | |
| head | |
| -----> 1 -> 3 -> 5 -> 7 -> 9|NULL | |
| */ | |
| #include <stdio.h> | |
| #include <stdlib.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Kaprika ์ | |
| ๋ค ์๋ฆฌ ์ซ์ 2025๊ฐ ์์ ๋ ๋ ์๋ฆฌ์ฉ 20, 25๋ก ๋๋ ์ ํฉํ ๊ฐ์ธ 45๋ฅผ ์ ๊ณฑํ์์ ๋ ๊ฐ์ด ์๋ ์์ธ 2025์ ๋น๊ตํ๋ ๋ฌธ์ | |
| 2025๋ฅผ ์๋ก ๋ค๋ฉด... | |
| 1. 20, 25์ผ๋ก ๋ถ๋ฆฌํฉ๋๋ค. | |
| -> 2025 / 100 = 20 , 2025 % 100 = 25 | |
| ์ด๋ ํ๋ก๊ทธ๋๋ฐ ์ธ์ด์์์ /,%๋ ์ซ์๋ฅผ ๋ถ๋ฆฌํ๋ ์ฉ๋๋ก ์ฌ์ฉํ ์ ์๋ค๋ ๊ฑธ ์์๋ ๋๋ค. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.*; | |
| public class Main { | |
| static LinkedList<Integer> list = new LinkedList<>(); // ์ ์๋ฅผ ๋ฃ์ ๋ฆฌ์คํธ | |
| public static void main(String[] args) { | |
| int input; | |
| do{ | |
| input = menu(); | |
| switch (input) { | |
| case 1: showArray(); break; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| int num[5000]; | |
| int flag=-1; | |
| /* ํจ์๋ฅผ ๋ฏธ๋ฆฌ์ ์ ํจ์ผ๋ก์จ ํจ์์ ์์น๋ฅผ ์์ ๋กํ ํ ์ ์๋ค */ | |
| int menu(void); | |
| void all_numbers(void); void add_number(void); void delete_number(void); void bubbleSort(void); | |
| void main(void){ | |
| int choice; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*********************************************************/ | |
| /* ํ๋งค๋ ๊ฒ์ํ๋ก๊ทธ๋จ 1.0 */ | |
| /* 2020๋ 4์ 6 ์ผ */ | |
| /*********************************************************/ | |
| #include <stdio.h> | |
| /* ์ฒซ๋ฒ์งธ ์์ : 4 ์ง์ (์์ธ, ๋ถ์ฐ, ์ธ์ฒ, ๊ด์ฃผ) | |
| ๋๋ฒ์งธ ์์ : 3 ํ๋ชฉ(์ปดํจํฐ, ํ๋ฆฐํฐ, ์ค์บ๋) | |
| ์ธ๋ฒ์งธ ์์ : 4 ๋ถ๊ธฐ(1/4๋ถ๊ธฐ, 2/4๋ถ๊ธฐ, 3/4๋ถ๊ธฐ, 4/4๋ถ๊ธฐ */ | |
| int sale[4][3][4] = { | |
| { { 10, 20, 15, 30 }, {5, 8, 40, 50}, { 26, 12, 18, 27 } }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.*; | |
| public class Main { | |
| public static void main(String[] args) { | |
| Scanner sc = new Scanner(System.in); | |
| int n = sc.nextInt(); | |
| long[][] num = new long[n+2][10]; | |
| for (int i=1; i<=9; i++) { | |
| num[1][i] = 1; | |
| if (i==9) num[2][i] = 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.*; | |
| public class Main { | |
| public static void main(String[] args) { | |
| Scanner sc = new Scanner(System.in); | |
| int n = sc.nextInt(); | |
| int[] num = new int[n+1]; | |
| for (int i=2; i<=n; i++) { | |
| num[i] = num[i-1]+1; | |
| if (i%2==0 && num[i/2]+1 < num[i]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.*; | |
| public class Main { | |
| public static void main(String[] args) { | |
| Scanner sc = new Scanner(System.in); | |
| StringBuilder sb = new StringBuilder(); | |
| int n = sc.nextInt(); | |
| for(int i=0; i<n; i++){ | |
| if (n==1) { | |
| sb.append("*"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.*; | |
| public class Main { | |
| public static void main(String[] args) { | |
| Scanner sc = new Scanner(System.in); | |
| int n = sc.nextInt(); | |
| int[] stair = new int[n+1]; | |
| int[] dp = new int[n+1]; | |
| for(int i=1; i<=n; i++) | |
| stair[i] = sc.nextInt(); |