Skip to content

Commit b11c4b1

Browse files
committed
2 parents 4313521 + 7a3e2c3 commit b11c4b1

File tree

106 files changed

+1415
-345
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+1415
-345
lines changed

.DS_Store

-6 KB
Binary file not shown.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
제목명: 이름 / 주차 / 푼 문제 개수
2-
> **제출한 코드****TIL**은 꼭 작성해주기!
2+
> **제출한 코드****TIL, WIL**은 꼭 작성해주기!
33
44
> 푼 문제가 여러 개라면 아래 폼 형식 복사해서 넣어주시면 됩니다 :D
5+
## 🌱WIL
6+
> 이번 한 주의 소감을 작성해주세요!
7+
-
58

6-
## 목표 문제 수: _
9+
## 🚀주간 목표 문제 수: _
710
> 푼 문제
811
- 사이트 #문제: 문제 유형 / 난이도
912
- [백준 #1541. 잃어버린 괄호](https://www.acmicpc.net/problem/1541): 그리디 / 실버2

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.cph/
2+
.DS_Store
3+
.DS_Store

.idea/.gitignore

Lines changed: 0 additions & 8 deletions
This file was deleted.

.idea/codingtest_algorithm_study.iml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.idea/inspectionProfiles/profiles_settings.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.idea/misc.xml

Lines changed: 0 additions & 7 deletions
This file was deleted.

.idea/modules.xml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.idea/vcs.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
def one_to_n(n):
2+
return n*(n+1) /2
3+
def solution(a, b):
4+
'''
5+
1~ 5 합 = 1+2+3+4+5 = 15 : n(n+1) /2 = 5*6/2 = 15
6+
'''
7+
# big , small
8+
if a > b :
9+
n=a ; m=b
10+
elif a < b :
11+
n=b ; m =a
12+
else : # a==b
13+
return a
14+
answer = one_to_n(n) - one_to_n(m-1)
15+
16+
return answer

0 commit comments

Comments
 (0)