https://www.acmicpc.net/problem/2775
times = int(input())
for _ in range(times):
floor = int(input())
unit = int(input())
stats = [i+1 for i in range(unit)]
for i in range(1,floor+1):
for j in range(1,unit):
stats[j] = stats[j-1]+stats[j]
print(stats[-1])
'๐ฅ๏ธSW Engineer > Algorithm' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[๋ฐฑ์ค]7568-๋ฉ์น (0) | 2023.02.26 |
---|---|
[๋ฐฑ์ค]10866 - ๋ฑ (0) | 2023.02.25 |
[๋ฐฑ์ค]11866-์์ธํธ์ค ๋ฌธ์ (0) | 2023.01.18 |
[๋ฐฑ์ค]1966-ํ๋ฆฐํฐ ํ (0) | 2023.01.17 |
[๋ฐฑ์ค]2609-์ต๋๊ณต์ฝ์์ ์ต์๊ณต๋ฐฐ์ ๊ตฌํ๊ธฐ (0) | 2023.01.09 |