Bigdata
close
프로필 배경
프로필 로고

Bigdata

  • 분류 전체보기 (299)
    • BS (0)
      • review (0)
      • study (0)
      • submission (0)
    • Computer Science (20)
      • Data Structure (0)
      • Algorithm (19)
      • OS (0)
      • ML, DL (0)
      • AI (0)
      • NLP (0)
      • Linear Algebra (0)
    • Statistics (33)
      • BSA (33)
      • ANOVA (0)
      • MSA (0)
      • Regression Analysis (0)
    • SQL (95)
    • Tableau (0)
    • Java (1)
    • DA (26)
    • TIL (0)
    • SAS (0)
    • Python (9)
    • DACON (8)
      • Project (0)
    • ST (2)
      • Deep Learning project (22-1.. (0)
      • Kaggle project (22-1) (0)
      • DACON_BASIC (22-1) (0)
      • Data (0)
      • Data Mining (0)
      • Kaggle project (21-2) (1)
      • Deep Learning (1)
    • C (103)
    • Etc (1)
  • 홈
  • 태그
  • 방명록
#28. [백준_C언어] 4673 : 셀프 넘버

#28. [백준_C언어] 4673 : 셀프 넘버

입력 코드 #include int SelfNumber(int n) { int sum = n; while (1) { if (n == 0) break; sum += n % 10; n = n / 10; } return sum; } main() { int i = 1, temp; int arr[10001] = { 0, }; for (i = 1; i < 10001; i++) { temp = SelfNumber(i); if (temp < 10001) arr[temp] = 1; } for (i = 1; i < 10001; i++) { if (arr[i] != 1) printf("%d\n", i); } return 0; } 코드 설명 배열과 반복문, 조건문을 이용해 함수를 작성하는 문제 #include void Self..

  • format_list_bulleted C
  • · 2021. 1. 13.
  • textsms
#27. [백준_C언어] 15596 : 정수 N개의 합

#27. [백준_C언어] 15596 : 정수 N개의 합

입력 코드 long long sum(int *a, int n) { long long ans = 0; int i; for (i = 0; i < n; i++) { ans += a[i]; } return ans; } 코드 설명 정수 n개의 합을 return하는 sum함수를 작성하는 문제 배열과 반복문을 이용하는 문제 #include void sum(int a[], int n) { int i, sum = 0; for (i = 0; i < n; i++) { sum += a[i]; } printf("%d", sum); } main() { int arr[5] = { 2, 4, 6, 3, 1 }; sum(arr, 5); } 포인터를 잘 몰라서 처음에는 이렇게 작성하고 제대로 작동하는지 확인해봤는데, 제출할 때 기본으로..

  • format_list_bulleted C
  • · 2021. 1. 13.
  • textsms
#26. [백준_C언어] 4344 : 평균은 넘겠지

#26. [백준_C언어] 4344 : 평균은 넘겠지

입력 코드 #include main() { int C, N; scanf("%d", &C); int i, j; int arr[1000]; for (i = 0; i mean) count++; } printf("%.3f", (double)count / N * 100); printf("%%\n"); } } 코드 설명 반복문과 조건문, 배열, 초기화를 이용하는 문제 #incl..

  • format_list_bulleted C
  • · 2021. 1. 12.
  • textsms
#25. [백준_C언어] 1546 : 평균

#25. [백준_C언어] 1546 : 평균

입력 코드 #include main() { int N; double M; scanf("%d", &N); int i; double sum = 0.0, mean, ans; double s[1000]; for (i = 0; i M) M = s[i]; else M = M; } mean = sum / N; ans = (double)mean * 100 / M; printf("%lf\n", ans); } 코드 설명 반복문, 조건문, 형식지정자 이용하는 문제 #include main() { int N, M; scanf("%d", &N); int i, ..

  • format_list_bulleted C
  • · 2021. 1. 12.
  • textsms
#24. [백준_C언어] 3052 : 나머지

#24. [백준_C언어] 3052 : 나머지

입력 코드 #include main() { int i = 0, j, k; int rem[10]; int input, result = 0; for(i=0;i

  • format_list_bulleted C
  • · 2021. 1. 11.
  • textsms
#20. [백준_C언어] 10250 : ACM 호텔

#20. [백준_C언어] 10250 : ACM 호텔

입력 코드 #include main() { int T, H, W, N; scanf("%d", &T); int i; for (i = 0; i < T; i++) { scanf("%d %d %d", &H, &W, &N); if (N%H == 0) printf("%d\n", H * 100 + (N / H)); else printf("%d\n", (N%H) * 100 + (N / H + 1)); } } 코드 설명 반복문과 조건문, 수식을 이용하는 문제 #include main() { int T, H, W, N; scanf("%d", &T); int i; for (i = 0; i < T; i++) { scanf("%d %d %d", &H, &W, &N); } } 호텔 정문까지 거리가 가장 짧도록 배정하려면 H개 층..

  • format_list_bulleted C
  • · 2021. 1. 8.
  • textsms
  • navigate_before
  • 1
  • 2
  • 3
  • navigate_next
공지사항
전체 카테고리
  • 분류 전체보기 (299)
    • BS (0)
      • review (0)
      • study (0)
      • submission (0)
    • Computer Science (20)
      • Data Structure (0)
      • Algorithm (19)
      • OS (0)
      • ML, DL (0)
      • AI (0)
      • NLP (0)
      • Linear Algebra (0)
    • Statistics (33)
      • BSA (33)
      • ANOVA (0)
      • MSA (0)
      • Regression Analysis (0)
    • SQL (95)
    • Tableau (0)
    • Java (1)
    • DA (26)
    • TIL (0)
    • SAS (0)
    • Python (9)
    • DACON (8)
      • Project (0)
    • ST (2)
      • Deep Learning project (22-1.. (0)
      • Kaggle project (22-1) (0)
      • DACON_BASIC (22-1) (0)
      • Data (0)
      • Data Mining (0)
      • Kaggle project (21-2) (1)
      • Deep Learning (1)
    • C (103)
    • Etc (1)
최근 글
인기 글
최근 댓글
태그
  • #반복문
  • #order by
  • #Where
  • #group by
  • #select
  • #join
  • #count
  • #수학
  • #백준
  • #C언어
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바