diff --git a/homework4.txt b/homework4.txt index d8160f0..4bc2bde 100644 --- a/homework4.txt +++ b/homework4.txt @@ -1,2 +1,4 @@ 1. What is .gitignore? You can write the answer either in Korean or English. -2. Why do Github users need an SSH key pair? (Users can use either SSH key pair or github account info.) Please write down a brief explanation of SSH key. \ No newline at end of file +project에 원하지 않는 파일들을 git에서 제외시킬 수 있는 설정 파일이다. +2. Why do Github users need an SSH key pair? (Users can use either SSH key pair or github account info.) Please write down a brief explanation of SSH key. +노트북을 github에 인증하기 위한 비밀번호와 같은 개념으로 github에 자신의 컴퓨터를 등록하는데 필요하다. diff --git a/homework4/Source.cpp b/homework4/Source.cpp index ab69b66..be3a10c 100644 --- a/homework4/Source.cpp +++ b/homework4/Source.cpp @@ -29,6 +29,16 @@ int main() Implement the code here! ************************************/ + int x; + for (int i = 0; i < arrsize; i++) { + x = 0; + for (int j = 0; j < arrsize; j++) { + if (arr[i] > arr[j]) + x++; + } + output[i] = x; + } + for (int i = 0; i < arrsize; i++) { cout << output[i] << " "; }