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.graph; | |
| import java.util.LinkedList; | |
| import java.util.Scanner; | |
| /** | |
| * 백준, 1922 | |
| * MST 최소 스패닝 트리, 프림 알고리즘 | |
| * | |
| * @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
| package sdk.backjun.graph; | |
| import java.util.Scanner; | |
| /** | |
| * 백준, 2606 | |
| * 바이러스 | |
| * 유니온 파인드로 해결 | |
| * | |
| * @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
| # -*- coding: utf-8 -*- | |
| import sys | |
| from os import rename, listdir | |
| # 현재 위치의 파일 목록 | |
| files = listdir('.') | |
| # 파일명에 번호 추가하기 | |
| count = 0 | |
| for name in files: |
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; | |
| import java.util.Scanner; | |
| /** | |
| * 백준, 점프 점프, 11060 | |
| * 다이나믹 프로그래밍 | |
| * | |
| * @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
| #!/usr/bin/python | |
| with open('파일명', 'r') as f: | |
| for line in f: | |
| print(line) |
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 | |
| class God(): | |
| def __init__(self): | |
| self.race = "God" | |
| self.age = 1000 | |
| self.name = 'Zeus' | |
| class Person(): | |
| def __init__(self): |
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 -*- | |
| class Info(): | |
| def __init__(self, name): | |
| self.name = '상품명: ' + name | |
| def __str__(self): | |
| return self.name |
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 -*- | |
| from datetime import datetime, timedelta | |
| # 20180501 부터 오늘까지 반환 | |
| # yyyymmdd 일자를 datetime 객체로 변환 | |
| start_date = datetime.strptime('20180501', '%Y%m%d') | |
| end_date = datetime.today() |
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
| /** | |
| * Runnable을 상속한 스레드 예제 | |
| * | |
| * @author User | |
| * | |
| */ | |
| public class ThreadExample1 implements Runnable { | |
| @Override | |
| public void run() { |
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
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>ScalaExample</groupId> | |
| <artifactId>ScalaExample</artifactId> | |
| <version>0.0.1-SNAPSHOT</version> | |
| <build> | |
| <sourceDirectory>src</sourceDirectory> | |
| <plugins> | |
| <plugin> |