
주어진 코드 #include #include #include int solution(int ladders[][2], int ladders_len, int win) { int answer = 0; int player[6] = { 1, 2, 3, 4, 5, 6 }; for (int i = 0; i < ladders_len; i++) { int temp = player[ladders[i][0] - 1]; //빈칸 = temp;//빈칸 } answer = player[win - 1]; return answer; } int main() { int ladders[5][2] = { {1, 2}, {3, 4}, {2, 3}, {4, 5}, {5, 6} }; int ladders_len = 5; int win = 3; ..

주어진 코드 #include #include #include int func_a(int time_table[], int time_table_len) { int answer = 0; for (int i = time_table_len - 1; i >= 0; i--) { if (time_table[i] == 1) { answer = i; break; } } return answer; } int func_b(int time_table[], int class1, int class2) { int answer = 0; for (int i = class1; i < class2; i++) if (time_table[i] == 0) answer++; return answer; } int func_c(int time_tab..

주어진 코드 #include #include #include int solution(int height[][4], int height_len) { int count = 0; //빈칸 return count; } int main() { int height[4][4] = { {3, 6, 2, 8}, {7, 3, 4, 2}, {8, 6, 7, 3}, {5, 3, 2, 9} }; int height_len = 4; int ret = solution(height, height_len = 4); printf("solution 함수의 반환 값은 %d 입니다.\n", ret); } 완성 코드 #include #include #include int solution(int height[][4], int height_len..

주어진 코드 #include #include #include int solution(int scores[], int scores_len, int cutline) { int answer = 0; //빈칸 return answer; } int main() { int scores[5] = { 80, 90, 55, 60, 59 }; int scores_len = 5; int cutline = 60; int ret = solution(scores, scores_len, cutline); printf("solution 함수의 반환 값은 %d 입니다.\n", ret); } 완성 코드 #include #include #include int solution(int scores[], int scores_len, int c..

주어진 코드 #include #include #include int solution(int n, int votes[], int votes_len) { int arr[101] = { 0, }; for (int i = 0; i n / 2)//이때 n은 후보의 수 이다. return i; return -1; } int main() { int n1 = 3; int votes1[7] = { 1, 2, 1, 3, 1, 2, 1 }; int votes_len1 = 7; int ret1 = solution(n1, votes1, votes_len1); printf("sol..

주어진 코드 #include #include #include int solution(int calorie[], int calorie_len) { int min_cal = 0; int answer = 0; for (int i = 0; i min_cal) answer += calorie[i] - min_cal; else min_cal = calorie[i]; } return answer; } int main() { int calorie[] = { 713, 665, 873, 500, 751 }; int ret = solution(calorie, 5); printf("solution 함수의 반환 값은 %d 입니다.\n", ret); } 완성 ..

주어진 코드 #include #include #include int solution(int point) { if (point < 1000) return 0; return point / 100 * 100; } int main() { int point = 2323; int ret = solution(point); printf("solution 함수의 반환 값은 %d 입니다.\n", ret); } 완성 코드 #include #include #include int solution(int point) { if (point < 1000) return 0; return point / 100 * 100; } int main() { int point = 2323; int ret = solution(point); prin..
- 배열활용문제
- 구름에듀 기출문제
- 구름에듀
- Java
- lv2
- lv1
- programmers
- 자바
- 구름 기출문제
- 연습문제
- COSPRO 2급
- C
- 기출문제
- 코스프로
- C++
- YBM
- cospro기출
- c언어
- groom
- Cos Pro
- cospro기출문제
- CosPro
- 1급
- 프로그래머스
- 코딩테스트
- 배열
- groomedu
- YBM기출
- 알고리즘
- c언어 기출문제
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |