Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion homework4.txt
Original file line number Diff line number Diff line change
@@ -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.
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에 자신의 컴퓨터를 등록하는데 필요하다.
10 changes: 10 additions & 0 deletions homework4/Source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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] << " ";
}
Expand Down