Skip to content

Instantly share code, notes, and snippets.

View Kernelzero's full-sized avatar

kernelzero Kernelzero

  • KNU SOFT
  • Seoul, south KOREA
View GitHub Profile

###Note Apple will reject apps that are using private url schemes (Ugh, Apple....) if they are pretty much obvius. Some apps are rejected and others are not, so, be aware of this issue before implementing any of those URL's in your app as a feature.

[UPDATE : Not yet tested in iOS 10. It will fail because of policies changes in URL scheme handling.]

[UPDATE 2:The openURL() method of UIApplication is now deprecated. You should use application(_:open:options:) instead]

##[UPDATE 3: For now you just can use url schemes to open your apps's settings with Swift 3.0 (Xcode 8). I'll keep you informed when OS preferences can be reached]

//pId에 해당하는 정보가 없는 경우
if userInfoDic == nil {
return nil
}
pastaList = list()
juiceList = list()
P_COUNT = 3
J_COUNT = 2
for _ in range(P_COUNT):
pastaList.append(int(input()))
for _ in range(J_COUNT):
# 현재온도, 희망온도 입력 받음.
current, dest = map(int, input().split())
# 조절해야 하는 양 = 희망온도 - 현재온도
amount = dest - current
# 최소한의 버튼 클릭으로, 희망온도로 조정한다.
# 해결방법 : 온도를 한번에 최대한 많이 조절하는 버튼을 눌러야 최소로 버튼을 누를 수 있다.
currency =[10,50,100,500,1000,5000,10000,50000]
exchange = int(input())
count = 0
currency.reverse()
while exchange != 0:
# 토핑수
# 도우가격, 토핑가격
# 도우의 칼로리
# 토핑의 칼로리
# 최고의 피자 1달러당 칼로리
toppingCount = int(input())
doughCost, toppingCost = map(int, input().split())
#####################################################################
# codeup 4040
# 팬션
# 행렬 입력받음
# 방 상태 입력받음
# 오는날, 가는날
# 방 이동 횟수 출력, 예약 안되면 -1 안 옮겨도 되면 0
N = int(input())
result = 0
array = list()
def calculateOdd(n):
if n != 1:
result = 3 * n + 1
else:
result = 1
PRINT_VALUES = ['not cross', 'cross']
a, b = map(int, input().split())
c, d = map(int, input().split())
a -= 1
b -= 1
c -= 1
d -= 1
array = list()
array.append([1])
def pascal_triangle():
length = len(array)
if length != 100:
temp_array = [1]