전체 글
-
[엑셀보다 쉬운 SQL] 문법 총정리스파르타 코딩클럽/엑셀보다 쉬운 SQL 2021. 7. 4. 23:57
[1주차] : Select, Where "데이터를 불러오고 (Select), 조건에 맞게 필터링 하는 것 (Where)!" [2주차] : Group by, Order by "데이터를 범주에 따라 묶어서 통계치를 구하고 (Group by), 정렬하는 것 (Order by)" [3주차] : Join "여러 데이터를 합쳐서 분석하기 (Join)" [4주차] : Subquery, 그 외 "더 쉽고 깔끔하게 원하는 데이터를 얻기(Subquery)" 1주차 : Select, Where - Select 쿼리문 : 1) 어떤 테이블에서 2) 어떤 필드의 데이터를 가져올지로 구성 - Where 절 : Select 쿼리문으로 가져올 데이터에 조건을 걸어주는 것 - 일부 데이터만 가져오기 : Limit 2주차 : Group..
-
[C / Baekjoon _ 백준] 10101 : 삼각형 외우기[C] Baekjoon _ 백준/Bronze IV 2021. 2. 9. 23:08
백준 #10101 : 삼각형 외우기 문제 풀이 #define _CRT_SECURE_NO_WARNINGS #include int main(){ int ang[3] = { 0, }; int sum = 0, cnt = 0; for (int i = 0; i < 3; i++) { scanf("%d", &ang[i]); sum += ang[i]; if (ang[i] == 60) cnt++; } if (cnt == 3) printf("Equilateral"); else if (sum == 180) { if (ang[0] == ang[1] || ang[1] == ang[2] || ang[0] == ang[2]) printf("Isosceles"); else printf("Scalene"); } else printf("..
-
[C / Baekjoon _ 백준] 10039 : 평균 점수[C] Baekjoon _ 백준/Bronze IV 2021. 2. 8. 22:20
백준 #10039 : 평균 점수 문제 풀이 #define _CRT_SECURE_NO_WARNINGS #include int main(){ int score[5] = { 0, }; int average = 0; for (int i = 0; i < 5; i++) { scanf("%d", &score[i]); if (score[i] < 40) score[i] = 40; average += score[i]; } printf("%d", average / 5); }
-
[C / Baekjoon _ 백준] 6764 : Sounds fishy![C] Baekjoon _ 백준/Bronze IV 2021. 2. 3. 22:34
백준 #6764 : Sounds fishy! 문제 풀이 #define _CRT_SECURE_NO_WARNINGS #include int main() { int arr[4] = { 0, }; int inc = 0, dec = 0, same = 0; for (int i = 0; i arr[i + 1]) dec += 1; else same += 1; } if (inc == 3) printf("Fish Rising"); else if (dec == 3) printf("Fish Diving"); else..
-
[C / Baekjoon _ 백준] 5928 : Contest Timing[C] Baekjoon _ 백준/Bronze IV 2021. 2. 1. 22:25
백준 #5928 : Contest Timing 문제 풀이 #define _CRT_SECURE_NO_WARNINGS #include int main() { int D, H, M; int result = 0; scanf("%d %d %d", &D, &H, &M); if (D < 11) { result = -1; } else if (D == 11) { if (H < 11) { result = -1; } else if (H == 11) { if (M < 11) { result = -1; } } } else { result = (D - 11) * 24 * 60 + (H - 11) * 60 + (M - 11); } printf("%d", result); }