Code&Data Insights
BaekJoon Algorithm - Stage 8 [10757, 2775 ] ( Python 3 ) 본문
Algorithm/BaekJoon Online Judge
BaekJoon Algorithm - Stage 8 [10757, 2775 ] ( Python 3 )
paka_corn 2022. 1. 27. 03:16
2022.01.26
# Stage 8 - [10757]
[ 10757 ] - 큰 수 A +B
[ my code ]
a, b = map(int, input().split())
def add(a,b):
return a+b
print(add(a,b))
# Stage 8 - [2775]
[ 2775 ] - 부녀회장이 될테야
[ my code ]
-----> 이런식으로 0층에 i호에는 i명이 살고 0층만 factorial 그 이후에는
1호를 제외한 그후의 호수의 명수를 더해서 출력된다.
[ my code - First Attempt ]
[ my code - Second Attempt ]
--> 마지막에 [-1]을 안해줘서 출력초과가 난것 같다.
'Algorithm > BaekJoon Online Judge' 카테고리의 다른 글
BaekJoon Algorithm - Stage 9 [3009, 1085] ( Python 3 ) (0) | 2022.02.01 |
---|---|
BaekJoon Algorithm - Stage 11 < Brute Force Search - 완전 탐색 > [ 2798 ]( Python 3 ) (0) | 2022.01.28 |
BaekJoon Algorithm - Stage 8 [2839 - 설탕 배달] ( Python 3 ) (0) | 2022.01.26 |
BaekJoon Algorithm - Stage 10 [10872,10870] ( Python 3 / JAVA ) (0) | 2022.01.23 |
BaekJoon Algorithm - Stage 8 [1712, 2869] ( Python 3 ) (0) | 2022.01.18 |
Comments