Skip to content

Instantly share code, notes, and snippets.

View CodeMath's full-sized avatar
🎯
Focusing

codemath CodeMath

🎯
Focusing
  • Seoul, Korea
View GitHub Profile
@CodeMath
CodeMath / algo.md
Created April 10, 2018 03:33
백준 랜덤 알고리즘 문제_20180410
@CodeMath
CodeMath / views.py
Created April 10, 2018 10:33
[django 2.0+] is_authenticated() function error : TypeError:
# is_authenticated() function get error
# TypeError: 'bool' object is not callable
def has_add_permission(self, request):
"""Return True if the user has the permission to add a model."""
try:
user_is_authenticated = request.user.is_authenticated()
except TypeError:
user_is_authenticated = request.user.is_authenticated
@CodeMath
CodeMath / algo.md
Created April 11, 2018 03:30
백준 랜덤 알고리즘 문제_20180411
@CodeMath
CodeMath / algo.md
Created April 12, 2018 03:30
백준 랜덤 알고리즘 문제_20180412
@CodeMath
CodeMath / algo.md
Created April 13, 2018 03:31
백준 랜덤 알고리즘 문제_20180413

피보나치 배열은 0과 1로 시작하며, 다음 피보나치 수는 바로 앞의 두 피보나치 수의 합이 된다. 정수 N이 주어지면, N보다 작은 모든 짝수 피보나치 수의 합을 구하여라.

예제) Input: N = 12 Output: 10 // 0, 1, 2, 3, 5, 8 중 짝수인 2 + 8 = 10.

@CodeMath
CodeMath / algo.md
Created April 16, 2018 03:30
백준 랜덤 알고리즘 문제_20180416
@CodeMath
CodeMath / algo.md
Created April 16, 2018 03:31
백준 랜덤 알고리즘 문제_20180416
@CodeMath
CodeMath / algo.md
Created April 17, 2018 03:30
백준 랜덤 알고리즘 문제_20180417
@CodeMath
CodeMath / algo.md
Created April 18, 2018 03:30
백준 랜덤 알고리즘 문제_20180418