incastle의 콩나물
2.3 Present and Future Values of Streams Future Value This formula for future value always uses the interest rate per period and assumes that interest rates are compounded each period Present Value Present value of a cash flow is the present payment amount that is equivalent to the entire stream 2.4 Internal Rate of Return IRR IRR is defined without reference to a prevailing interest rate Determ..
2.1 Principal and Interest Principal : Amount invested (original amount) Interest : Extra money paid on principal Simple interest Interest will be paid only on the principal Account grows linearly with time V = A(1+r*n) V = Future value, A = 원금, r = 이자, n = 몇 년? Compound interest Interest will be paid on the principal and accrued interest Rule of 72 Money invested at R% compounded annually doubl..
Cash Flow Stram - 여러 기간에 걸친 cash flow 일련의 흐름을 cash flow stream이라고 함 Comparison Principle - 두 가지(혹은 그 이상) 대안을 비교하여 선택하는 것 Arbitrage(차익 거래) - Earning money without investing anything - No-arbitrage assumption: assuming that no arbitrage opportunities exist for purpose of analysis Dynamics - Financial markets are dynamic Risk aversion - return이 동일하면 투자자들은 risk가 더 적은 상품을 선호한다. - 투자자는 더 큰 수익을 기대할 경우에..
문제 N개의 수가 주어졌을 때, 이를 오름차순으로 정렬하는 프로그램을 작성하시오. 입력 첫째 줄에 수의 개수 N(1 ≤ N ≤ 10,000,000)이 주어진다. 둘째 줄부터 N개의 줄에는 숫자가 주어진다. 이 수는 10,000보다 작거나 같은 자연수이다. 출력 첫째 줄부터 N개의 줄에 오름차순으로 정렬한 결과를 한 줄에 하나씩 출력한다. 이 문제 같은 경우는 입력 개수가 많고, 값이 범위는 상대적으로 좁다. 이 때 사용할만한 알고리즘이 계수 정렬(Counting Sort) 알고리즘이다 계수 정렬 - 배열의 인덱스를 특정한 데이터의 값으로 여기는 정렬 방법 - 배열의 크기는 데이터의 범위를 포함할 수 있도록 설정 - 데이터가 등장한 횟수를 센다. import sys n = int(sys.stdin.read..