
[ 문제 ] 오각형의 각 변에 아래 그림과 같이 점을 찍어 나간다. N단계에서 점의 개수는 모두 몇 개일까? [ 코드 ] 1. 내 코드 using System.Numerics; StreamReader sr = new StreamReader(new BufferedStream(Console.OpenStandardInput())); StreamWriter sw = new StreamWriter(new BufferedStream(Console.OpenStandardOutput())); int n = int.Parse(sr.ReadLine()); BigInteger result = 5; BigInteger num = 7; for (int i = 2; i