๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ ๋ฉ”๋‰ด ๋ฐ”๋กœ๊ฐ€๊ธฐ

KITHUB ์ €์žฅ์†Œ๐Ÿ˜€

ํ”„๋กœํ•„์‚ฌ์ง„
  • ๊ธ€์“ฐ๊ธฐ
  • ๊ด€๋ฆฌ
  • ํƒœ๊ทธ
  • ๋ฐฉ๋ช…๋ก
  • RSS

KITHUB ์ €์žฅ์†Œ๐Ÿ˜€

๊ฒ€์ƒ‰ํ•˜๊ธฐ ํผ
  • ๋ถ„๋ฅ˜ ์ „์ฒด๋ณด๊ธฐ (44)
    • โ†˜ Programming (15)
      • โ”— JAVA (4)
      • โ”— PYTHON (0)
      • โ”— JSON (0)
      • โ”— Node.js (1)
      • โ”— GIS (10)
    • โ†˜ Framework (3)
      • โ”— Spring (2)
      • โ”— Spring boot (1)
      • โ”— VueJS (0)
    • โ†˜ Linux (2)
      • โ”— Ubuntu (0)
      • โ”— Centos (2)
    • โ†˜ Database (2)
      • โ”— Mysql (2)
      • โ”— MariaDB (1)
      • โ”— Procedure (0)
    • โ†˜ Network (2)
    • โ†˜ IDE (2)
      • โ”— Eclipse (0)
      • โ”— Visual Studio Code (2)
      • โ”— IntelliJ (0)
    • โ†˜ Tools (4)
      • โ”— Docker (2)
    • โ†˜ VCS (0)
      • โ”— Github (0)
    • โ†˜ Algorithm (4)
    • โ†˜ K's Life (2)
      • โ”— ์™ธ๊ตญ์–ด (0)
      • โ”— ์ปคํ”ผ์ด์•ผ๊ธฐ (1)
    • โ†˜ IT world (0)
    • ์˜คํ”ˆAPI (0)
    • ํ”„๋กœ๊ทธ๋žจ by kim (0)
    • ๋ฒ„ํ‚ท๋ฆฌ์ŠคํŠธ (0)
    • To do study (0)
  • ๋ฐฉ๋ช…๋ก

โ†˜ Algorithm (4)
[ ๋ฐฑ์ค€ ] 1065 ํ•œ์ˆ˜

package test; import java.util.Scanner; public class Test2 { public static void main(String[] args) { Test2 test = new Test2(); Scanner in = new Scanner(System.in); int n = in.nextInt(); System.out.println(test.d(n));; } public int d(int n){ int count = 0; for(int i = 1 ; i

โ†˜ Algorithm 2021. 4. 29. 10:08
[ ๋ฐฑ์ค€์•Œ๊ณ ๋ฆฌ์ฆ˜ 1924๋ฒˆ] 2007๋…„

์ ‘๊ทผ๋ฐฉ๋ฒ• 1. ์ž…๋ ฅํ•œ ์›”๊นŒ์ง€์˜ ๋ชจ๋“  ์ผ์ˆ˜๋ฅผ ๋”ํ•œ๋‹ค. (ex 3์›” => 31+28+31) 2. ํ•ด๋‹น ์›”์˜ ๋งˆ์ง€๋ง‰ ์ผ์ž - ์ž…๋ ฅํ•œ ์ผ์ž (ex 3์›” 10์ผ => 31 - 10 ) 3. ๋ชจ๋“ ์ผ์ˆ˜ - (์ž…๋ ฅ ์›”์˜ ๋งˆ์ง€๋ง‰์ผ์ž - ์ž…๋ ฅ ์ผ์ž ) = >totalDate 4. totalDate๋ฅผ 7๋กœ ๋‚˜๋ˆˆ ๋‚˜๋จธ์ง€์˜ ๊ฐ’์„ ์š”์ผ๋กœ ์ •์˜ (1=์›”, 2= ํ™” .... ) public static void main(String[] args) { int[] months = {31,28,31,30,31,30,31,31,30,31,30,31}; char[] days = {'์›”','ํ™”','์ˆ˜','๋ชฉ','๊ธˆ','ํ† ','์ผ'}; int totalDate = 0; Scanner scanner = new Scanner(System.in); ..

โ†˜ Algorithm 2019. 11. 1. 11:19
[ ๋ฐฑ์ค€์•Œ๊ณ ๋ฆฌ์ฆ˜ 1152๋ฒˆ ] ๋‹จ์–ด์˜ ๊ฐœ์ˆ˜

์ ‘๊ทผ๋ฐฉ๋ฒ• 1. ๋‹จ์–ด์™€ ๋‹จ์–ด์‚ฌ์ด์—๋Š” ๊ณต๋ฐฑ์ด ์กด์žฌํ•จ์œผ๋กœ, ๋„์›Œ์“ฐ๊ธฐ(๊ณต๋ฐฑ)์˜ ๊ฐฏ์ˆ˜๋กœ ๋‹จ์–ด์ˆ˜๋ฅผ ํŒ๋‹จ. 2. ๋ฌธ์žฅ ๋์— ๋„์›Œ์“ฐ๊ธฐ๊ฐ€ ์กด์žฌํ•˜๋Š” ๊ฒฝ์šฐ๋ฅผ ํŒ๋‹จํ•˜์—ฌ ๊ฒฐ๊ณผ๋ณ€์ˆ˜์˜ ์ดˆ๊ธฐ๊ฐ’์ด ๋‹ฌ๋ผ์ง„๋‹ค. 3. ๋ฌธ์žฅ์˜ ํ•œ๊ธ€์ž์”ฉ ๋น„๊ตํ•˜๋ฉด์„œ ๋„์›Œ์“ฐ๊ธฐ๊ฐ€ ๋‚˜ํƒ€๋‚˜๋ฉด ๋‹จ์–ด์˜ ๊ฐฏ์ˆ˜๋ฅผ ์ฆ๊ฐ€์‹œํ‚จ๋‹ค. ์ฆ‰, A_B_C = ๋„์›Œ์“ฐ๊ธฐ๊ฐ€ 2๊ฐœ์ด๋ฏ€๋กœ ์ดˆ๊ธฐ๊ฐ’ wordCnt = 1; A_B_C_ = ๋„์›Œ์“ฐ๊ธฐ๊ฐ€ 3๊ฐœ์ด๋ฏ€๋กœ ์ดˆ๊ธฐ๊ฐ’ wordCnt = 0; public class Main { public static void main(String[] args) { String content = "Teullinika Teullyeotzi"; char[] list = content.toCharArray(); int wordCnt = list[content.length()-..

โ†˜ Algorithm 2019. 10. 29. 10:42
[ ๋ฐฑ์ค€์•Œ๊ณ ๋ฆฌ์ฆ˜ 2941๋ฒˆ ] ํฌ๋กœ์•„ํ‹ฐ์•„ ์•ŒํŒŒ๋ฒณ

์ ‘๊ทผ๋ฐฉ๋ฒ• 1. ํฌ๋กœ์•„ํ‹ฐ์•„ ์•ŒํŒŒ๋ฒณ ๋ฆฌ์ŠคํŠธ๋ฅผ ๋งŒ๋“ ๋‹ค. 2. ์ž…๋ ฅ๋œ ๋ฌธ์ž์—ด๊ณผ ํฌ๋กœ์•„ํ‹ฐ์•„ ์•ŒํŒŒ๋ฒณ ๋ฆฌ์ŠคํŠธ๋ฅผ ๋น„๊ตํ•œ๋‹ค. 3. ํฌ๋กœ์•„ํ‹ฐ์•„ ์•ŒํŒŒ๋ฒณ์„ ๋ชจ๋‘ # ์œผ๋กœ ๋ณ€๊ฒฝ ํ•ด์ค€๋‹ค. 4. ์•ŒํŒŒ๋ฒณ ํฌ๊ธฐ๋ฅผ ์ถœ๋ ฅํ•œ๋‹ค. public class Main { public static void main(String[] args) { // ๋น„๊ต ๋ฌธ์ž์—ด String[] alphabetList = {"c=","c-","dz=","d-","lj","nj","s=","z="}; String work = "ljes=njaknjnj"; for(int i = 0 ; i < alphabetList.length ;i++) { if(work.contains(alphabetList[i])) { work = work.replace(alphabetList[i]..

โ†˜ Algorithm 2019. 10. 28. 17:27
์ด์ „ 1 ๋‹ค์Œ
์ด์ „ ๋‹ค์Œ

Blog is powered by Tistory / Designed by Tistory

ํ‹ฐ์Šคํ† ๋ฆฌํˆด๋ฐ”