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 time, datetime | |
| # 클래스 데코레이터 | |
| class ElapsedDecorator: | |
| # 클래스 생성시 func에 입력 | |
| def __init__(self, f): | |
| self.func = f |
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/env python | |
| # -*- coding: utf-8 -*- | |
| _LIST1_ = [ "json", "txt", "csv" ] | |
| _LIST2_ = [ "1", "2", "3" ] | |
| _LIST3_ = [ "a", "b", "c" ] | |
| def check_param_values(param_index, check_list): | |
| ''' param_index로 전달된 데이터가, check_list에 있는 데이터 인지 확인하고 오류를 발생하는 데코레이터 ''' | |
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.dynamic; | |
| import java.util.Scanner; | |
| /** | |
| * 정올, 2616, 앱 | |
| * 다이나믹 프로그래밍 | |
| * | |
| * http://www.jungol.co.kr/bbs/board.php?bo_table=pbank&wr_id=1878&sca=3050 | |
| * |
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.IOException; | |
| import java.io.InputStreamReader; | |
| import java.util.StringTokenizer; | |
| /** | |
| * 백준, 기타줄, 1049 | |
| * | |
| * @author whitebeard-k | |
| * |
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.Arrays; | |
| /** | |
| * 거품정렬 | |
| * 두 인접한 원소를 비교하여 확인하는 처리하는 정렬 | |
| * | |
| * @author User | |
| * | |
| */ | |
| public class BubbleSort { |
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; | |
| public class Problem2193 { | |
| public static long[][] dp; | |
| public static void main(String[] args) { | |
| Scanner sc = new Scanner(System.in); | |
| int N = sc.nextInt(); |
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.IOException; | |
| import java.io.InputStreamReader; | |
| import java.util.Arrays; | |
| import java.util.Comparator; | |
| public class Problem1931 { | |
| static int size; | |
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/env python | |
| # -*- coding: utf-8 -*- | |
| import urllib, json, urllib2, datetime | |
| from urllib2 import HTTPError | |
| def request_get(request_url): | |
| return request(request_url, "GET", "", {'Content-Type': 'application/json'}) | |
| def request(request_url, request_type="GET", data="", header={}): | |
| '''send url and get response''' |
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.backjun.bfs; | |
| import java.util.LinkedList; | |
| import java.util.Queue; | |
| import java.util.Scanner; | |
| /** | |
| * 백준, 14502 | |
| * 연구소 | |
| * |
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.backjun; | |
| /** | |
| * 백준, 4673 | |
| * 셀프 넘버 | |
| * | |
| * @author whitebeard-k | |
| * | |
| */ | |
| public class Problem4673 { |