본문 바로가기 메뉴 바로가기

하늘리 개발일기

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

하늘리 개발일기

검색하기 폼
  • 분류 전체보기 (138)
    • [코테] (133)
      • [Programmers Lv1] (43)
      • [Programmers Lv2] (19)
      • [GroomEdu] (61)
      • [Programmers] (0)
      • [YBM-sample] (10)
    • [Android] (1)
      • 이론 (0)
      • Kotlin (0)
      • JAVA (0)
    • [반성문] (1)
    • [클론코딩] (1)
    • [React-Node.js] (0)
  • 방명록

코스프로 (86)
[COS PRO 2급] 5차 5번_n일장이 함께 열리는 날은 언제인가요? (C/C++)

주어진 코드 #include #include #include int solution(int a, int b) { int answer = 0; for (int i = 1; i

[코테]/[GroomEdu] 2021. 5. 25. 19:13
[COS PRO 2급] 5차 6번_이제 수학 시험에 모든걸 건다 평균 70을 위하여 (C/C++)

주어진 코드 #include #include #include int solution(int korean, int english) { int answer = 0; int math = 210 - korean + english; if (math > 100) answer = -1; else answer = math; return answer; } int main() { int korean = 70; int english = 60; int ret = solution(korean, english); printf("solution 함수의 반환 값은 %d 입니다.\n", ret); } 주어진 코드 결과 korean english return 70 60 80 코드 문제점 int math = 210 - korean + e..

[코테]/[GroomEdu] 2021. 5. 25. 19:13
[COS PRO 2급] 5차 4번_선수가 획득한 점수 (C/C++)

주어진 코드 #include #include #include int solution(int taekwondo, int running, int shooting[], int shooting_len) { int answer = 0; if (taekwondo >= 25) answer += 빈칸 ; else answer += taekwondo * 8; answer += 250 + (60 - running) * 5; int count = 0; for (int i = 0; i = 7) answer += 빈칸 ; return answer; } int main..

[코테]/[GroomEdu] 2021. 5. 24. 14:00
[COS PRO 2급] 5차 1번_사다리 게임의 승자를 구해주세요! (C/C++)

주어진 코드 #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; ..

[코테]/[GroomEdu] 2021. 5. 23. 16:00
[COS PRO 2급] 5차 2번_공강시간 구하기 (C/C++)

주어진 코드 #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..

[코테]/[GroomEdu] 2021. 5. 23. 16:00
[COS PRO 2급] 4차 9번_위험한 지역 몇개인지 알려주기 (C/C++)

주어진 코드 #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..

[코테]/[GroomEdu] 2021. 5. 22. 16:00
[COS PRO 2급] 4차 10번_XX시험 합격자 수 구하기 (C/C++)

주어진 코드 #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..

[코테]/[GroomEdu] 2021. 5. 22. 16:00
[COS PRO 2급] 4차 7번_오른 점수와 떨어진 점수 구하기 (C/C++)

주어진 코드 #include #include #include int func_a(int scores1[], int scores2[], int scores_len) { int answer = 0; for (int i = 0; i scores2[i] - scores1[i])//중간점수 - 기말점수 ..

[코테]/[GroomEdu] 2021. 5. 21. 22:50
이전 1 ··· 6 7 8 9 10 11 다음
이전 다음
공지사항
  • About Me
최근에 올라온 글
TAG
  • Cos Pro
  • C++
  • 코스프로
  • 구름에듀 기출문제
  • YBM기출
  • 구름 기출문제
  • groom
  • COSPRO 2급
  • cospro기출
  • Java
  • groomedu
  • lv2
  • 구름에듀
  • 연습문제
  • C
  • c언어 기출문제
  • programmers
  • 알고리즘
  • cospro기출문제
  • YBM
  • 프로그래머스
  • CosPro
  • 기출문제
  • c언어
  • lv1
  • 배열
  • 배열활용문제
  • 1급
  • 코딩테스트
  • 자바
more
«   2025/06   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바

개인정보

  • 티스토리 홈
  • 포럼
  • 로그인

단축키

내 블로그

내 블로그 - 관리자 홈 전환
Q
Q
새 글 쓰기
W
W

블로그 게시글

글 수정 (권한 있는 경우)
E
E
댓글 영역으로 이동
C
C

모든 영역

이 페이지의 URL 복사
S
S
맨 위로 이동
T
T
티스토리 홈 이동
H
H
단축키 안내
Shift + /
⇧ + /

* 단축키는 한글/영문 대소문자로 이용 가능하며, 티스토리 기본 도메인에서만 동작합니다.