목록개발 (2)
Creative Code
#include #include #include #include using namespace std;int dp[301][3] = { 0 }; // n번째 계단에 m번연속 발판을 밟아 도착했을 때 얻을 수 있는 점수int stair[301]; // 계단의 점수를 저장하는 배열int solution(int N) { int answer = 0; dp[0][1] = 0; dp[0][2] = 0; dp[1][1] = stair[1]; dp[1][2] = stair[1]; for (int i = 2; i > N; int numStair = N; int index = 1; while (N > 0) { int k; cin >> k; stair[index] = k; index++; N--; } cout h..
pwd (현재 작업중인 디렉토리) gedit hello.c ( hello.c 메모장 실행) cc hello.c (실행파일 생성) ls (현재 디렉토리의 파일 확인) ./a.out 생성된 실행파일 실행 cc -o fahr2celsius fahr2celsius.c (fahr2celsius.c의 실행파일 fahr2celsius 생성) mkdir hello ( hello 디렉토리 생성) cd c_src(작업하는 디렉토리 위치를 c_src로 이동) find / - name limits.h 디렉토리를 뒤져서 limits.h라는 파일을 찾음 cd (처음 작업하는 디렉토리로 이동) cp isLeap.c isOrdinary.c (isLeap.c의 파일을 복사해 isOrdinary.c로 생성 cc -o letterAttr..