This file contains 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; | |
/** | |
* 날짜 계산 | |
* 문제 : https://www.acmicpc.net/problem/1476 | |
* 풀이 : https://www.acmicpc.net/source/share/151e08d2bcaa46a8a28f61b063550578 | |
* 지구를 나타내는 수를 E, 태양을 나타내는 수를 S, 달을 나타내는 수를 M이라고 했을 때, 이 세 수는 서로 다른 범위를 가진다. | |
* (1 ≤ E ≤ 15, 1 ≤ S ≤ 28, 1 ≤ M ≤ 19) | |
* E S M이 우리가 알고 있는 연도로 몇 년인지 구하는 프로그램을 작성하시오. | |
* [sample] |
This file contains 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
🌞 Morning 416 commits █████████▊░░░░░░░░░░░ 46.7% | |
🌆 Daytime 245 commits █████▊░░░░░░░░░░░░░░░ 27.5% | |
🌃 Evening 114 commits ██▋░░░░░░░░░░░░░░░░░░ 12.8% | |
🌙 Night 115 commits ██▋░░░░░░░░░░░░░░░░░░ 12.9% |
This file contains 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
// 두 개의 수들의 인덱스들을 반환하는 함수를 작성하라. | |
// 반환되는 두 개의 수의 합은 주어진 목표 정수 값과 동일해야 한다. 단, 복잡도는 O(n)이어야 한다. (가능한 주어진 입력 배열을 한번만 읽는다.) | |
// input : [2, 5, 7, 11, 15, 4], 9 | |
// output : [0, 2] | |
import java.util.HashMap; | |
class Solution { | |
public int[] solution(int[] arrayParam, int targetParam) { | |
// e.g. arrayParam = [2, 5, 7, 11, 15, 4] |
This file contains 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 city; | |
import java.util.ArrayList; | |
import constructure.Constructure; | |
import creature.Creature; | |
public abstract class City { | |
// 면적 |
This file contains 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 city.City; | |
import city.Seoul; | |
import city.gu.Gangnam; | |
public class MainExtends2 { | |
public static void main(String[] args) { | |
City gangnam = new Gangnam(); | |
City seoul = new Seoul(); | |
seoul.collectTax(1000); |
This file contains 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
language : android | |
jdk : oraclejdk8 | |
android: | |
components: | |
- platform-tools | |
- tools | |
- build-tools-24.0.2 | |
- android-24 |
This file contains 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
public class Euler3 { | |
public static void main(String[] args) { | |
euler3(); | |
} | |
public static void euler3(){ | |
//double largestFF = 7.16151937E8; | |
double largestFF = 0; | |
This file contains 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.Random; | |
public class MathMain { | |
// 반환형 : 반환값 없을 경우 | |
public static void main(String[] args) { | |
int[] a = new int[6]; | |
int b = 0; | |
// 배열에 값을 입력하기 위한 반복문 |
This file contains 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
System check identified no issues (0 silenced). | |
July 01, 2016 - 08:00:45 | |
Django version 1.9.7, using settings 'mysite.settings' | |
Starting development server at http://127.0.0.1:8000/ | |
Quit the server with CONTROL-C. | |
today >>>> 2016-07-01 08:00:49.750944 | |
/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/django/db/models/fields/__init__.py:1453: RuntimeWarning: DateTimeField Poll.start_date received a naive datetime (2016-07-01 08:00:49.750944) while time zone support is active. | |
RuntimeWarning) | |
/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/django/db/models/fields/__init__.py:1453: RuntimeWarning: DateTimeField Poll.end_date received a naive datetime (2016-07-01 08:00:49.750944) while time zone support is active. |
This file contains 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
TEMPLATES = [ | |
{ | |
'BACKEND': 'django.template.backends.django.DjangoTemplates', | |
'DIRS': [ | |
os.path.join(BASE_DIR, 'templates'), | |
], | |
'APP_DIRS': True, | |
'OPTIONS': { | |
'context_processors': [ | |
'django.template.context_processors.debug', |