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.Scanner; | |
| /** | |
| * 백준, 1275 | |
| * 커피숍2 | |
| * | |
| * @author whitebeard-k | |
| * | |
| */ | |
| public class Problem1275 { |
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.Scanner; | |
| /** | |
| * 백준, 다이나믹, 1149, RGB 거리 | |
| * | |
| * @author whitebeard-k | |
| * | |
| */ | |
| public class Problem1149 { |
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
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| import multiprocessing | |
| import random | |
| import time | |
| def worker(num): | |
| for i in range(5): | |
| print("{0}, {1}".format(num, i)) | |
| return |
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
| package sdk.java; | |
| import java.io.BufferedReader; | |
| import java.io.DataOutputStream; | |
| import java.io.InputStreamReader; | |
| import java.net.HttpURLConnection; | |
| import java.net.URL; | |
| import javax.net.ssl.HttpsURLConnection; |
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
| /** | |
| * Java를 이용한 큐 구현 | |
| * | |
| * @author whitebeard | |
| * | |
| */ | |
| public class Queue { | |
| private int[] array; | |
| private int head; |
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.LinkedList; | |
| import java.util.Queue; | |
| /** | |
| * 큐를 이용하여 스택 구현하기 | |
| * 큐 2개를 이용하여 스택을 구현하는 방법 | |
| * | |
| * push 시점에는 inBox 큐에 입력 | |
| * pop 시점에는 inBox 에 있는 데이터를 | |
| * outBox에 넣어서 출력한다. |
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.HashMap; | |
| import java.util.LinkedList; | |
| import java.util.Scanner; | |
| /** | |
| * 백준, 1753, 다익스트라 알고리즘 | |
| * | |
| * @author whitebeard | |
| * | |
| */ |
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
| package sdk.jungol.greedy; | |
| import java.util.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.TreeSet; | |
| public class Problem2499 { | |
| static TreeSet<Integer> set = new TreeSet<>(); |
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.text.DateFormat; | |
| import java.text.ParseException; | |
| import java.text.SimpleDateFormat; | |
| import java.util.Date; | |
| public class SimpleDateFormatPattern { | |
| public static String unixTimeToStrDate(String unixtime) { | |
| Date date = new Date(Long.parseLong(unixtime)); | |
| DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd"); |
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.io.BufferedReader; | |
| import java.io.InputStreamReader; | |
| /** | |
| * 백준 온라인 저지 | |
| * 1991 | |
| * 트리순회 | |
| * | |
| * @author whitebeard-k | |
| * |