ps2 Baekjoon 2775 Python https://www.acmicpc.net/problem/2775 2775번: 부녀회장이 될테야 첫 번째 줄에 Test case의 수 T가 주어진다. 그리고 각각의 케이스마다 입력으로 첫 번째 줄에 정수 k, 두 번째 줄에 정수 n이 주어진다 www.acmicpc.net Code case = int(input()) for _ in range(case): floor = int(input()) ho = int(input()) f_0 = [x for x in range(1, ho+1)] for _ in range(floor): for i in range(1, ho): f_0[i] += f_0[i-1] print(f_0[-1]) #1 Key Code f_0 = [x for x in range(1, ho+1)] .. 2022. 11. 20. Baekjoon 5355 Python https://www.acmicpc.net/problem/5355 5355번: 화성 수학 겨울 방학에 달에 다녀온 상근이는 여름 방학 때는 화성에 갔다 올 예정이다. (3996번) 화성에서는 지구와는 조금 다른 연산자 @, %, #을 사용한다. @는 3을 곱하고, %는 5를 더하며, #는 7을 빼는 연산 www.acmicpc.net Problem You are on planet jj and they do math a bit differently. Math is done using the following operators : @, %, and #. @ is multiply by 3. % is add 5. # is subtract 7. That is all they can do in terms of mat.. 2022. 11. 19. 이전 1 다음