책뿌수기 - 기초가 든든한 데이터 베이스 4

인용하는 그림은 다양한 곳에서 가져왔음을 밝힙니다 Ch 4. 관계 대수 Section 1. 관계 대수 관계 대수는 릴레이션을 처리하는 연산의 집합 관계 대수의 피연산자는 릴레이션 연산 결과도 릴레이션 원하는 정보를 유도하는 절차적 언어 ...

11월 28, 2018 · Jaejin Jang

책뿌수기 - 기초가 든든한 데이터 베이스 3

인용하는 그림은 다양한 곳에서 가져왔음을 밝힙니다 Ch 3. 관계 데이터 모델과 제약조건 Section 1. 관계 데이터 모델 관계 데이터 모델(relation data model) 집합론과 논리 분야에 근거해 튼튼한 이론적 토대를 가지고 있다. 널리 사용되는 모델이다. 1.1 릴레이션 개념 ...

11월 28, 2018 · Jaejin Jang

책뿌수기 - 기초가 든든한 데이터 베이스 2

인용하는 그림은 다양한 곳에서 가져왔음을 밝힙니다 Ch 2. 데이터 모델 Section 1. 데이터 모델 1.1 데이터 모델의 개념 데이터베이스의 구조를 단순화, 추상화하여 체계적으로 표현하는데 사용되는 도구 1.2 데이터 모델의 구성요소 ...

11월 27, 2018 · Jaejin Jang

백준알고리즘 1110번 - 더하기 사이클

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 32 33 #include <iostream> #pragma warning(disable:4996) using namespace std; int main(void) { int num, tmp, cnt = 0; cin.tie(NULL); ios_base::sync_with_stdio(false); #ifndef ONLINE_JUDGE freopen("input.txt", "r", stdin); freopen("output.txt", "w", stdout); #endif cin >> num; tmp = num; do { tmp = ((tmp % 10) * 10) + (tmp%10 + tmp/10)%10; cnt++; } while (tmp != num); cout << cnt; #ifndef ONLINE_JUDGE fclose(stdin); fclose(stdout); #endif return 0; }

11월 26, 2018 · Jaejin Jang

백준알고리즘 4344번 - 평균은 넘겠지

제목 재밌네 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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 #include <iostream> #include <vector> #include <algorithm> #include <iomanip> #pragma warning(disable:4996) using namespace std; int main(void) { int num, casenum, score, cnt; double sum, avg; vector<int> arr; vector<int>::iterator it; cin.tie(NULL); ios_base::sync_with_stdio(false); #ifndef ONLINE_JUDGE freopen("input.txt", "r", stdin); freopen("output.txt", "w", stdout); #endif cin >> num; for (int i = 0; i < num; i++) { cin >> casenum; sum = 0; arr.clear(); avg = 0; cnt = 0; for (int j = 0; j < casenum; j++) { cin >> score; arr.push_back(score); sum += score; } avg = sum / casenum; for (it = arr.begin(); it != arr.end(); it++) { if ((*it) > avg) cnt++; } cout << fixed << setprecision(3); cout << (double)cnt/casenum*100 << "%\n"; } #ifndef ONLINE_JUDGE fclose(stdin); fclose(stdout); #endif return 0; }

11월 26, 2018 · Jaejin Jang

백준알고리즘 1546번 - 평균

요즘 다시 시작한 알고리즘 공부.. 쉬운거 부터 풀어 봅시다 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 32 33 34 35 36 37 38 39 40 41 42 43 #include <iostream> #include <vector> #include <algorithm> #include <iomanip> #pragma warning(disable:4996) using namespace std; int main(void) { int num, max, score; double sum = 0; vector<int> arr; vector<int>::iterator it; cin.tie(NULL); ios_base::sync_with_stdio(false); #ifndef ONLINE_JUDGE freopen("input.txt", "r", stdin); freopen("output.txt", "w", stdout); #endif cin >> num; for (int i = 0; i < num; i++) { cin >> score; arr.push_back(score); } max = *max_element(arr.begin(), arr.end()); for (it = arr.begin(); it != arr.end(); it++) { sum += (*it) / (double)max * 100; } cout << fixed << setprecision(2); cout << sum / num; #ifndef ONLINE_JUDGE fclose(stdin); fclose(stdout); #endif return 0; }

11월 26, 2018 · Jaejin Jang

책뿌수기 - 기초가 든든한 데이터 베이스 1

인용하는 그림은 다양한 곳에서 가져왔음을 밝힙니다 Ch 1. DB 시스템 Section 1. DB 1.1 데이터와 데이터 베이스 개념 DB = 필요한 데이터를 모아 놓은 것 1.2 데이터와 정보 데이터 : 관찰하거나 측정하여 기술하는 가공되지 않은 사실이나 값 정보 : 의미 있고 쓸모 있는 내용으로 가공한 데이터 1.3 DB의 정의와 특징 ...

11월 26, 2018 · Jaejin Jang

간만의 소개팅

오랜~만에 소개팅 나갑니다. 소개팅 나가려고하니 괜히 또 사투리가 신경쓰이네요. 그거 알죠? 괜히 신경쓰면 말하는거 부자연스러워지는거? 로봇되는건 아니겠죠? (괜찮아요? 많이 놀랬죠?) ...

11월 21, 2018 · Jaejin Jang

인터럽트와 예외 - 2

향상된 프로그램 가능한 인터럽트 컨트롤러 CPU가 하나라면 마스터 PIC의 출력선을 곧바로 CPU의 INTR핀으로 연결하면 된다. 그렇지만 2개 이상이 된다면 복잡한 PIC를 필요로 한다. ...

6월 11, 2018 · Jaejin Jang

인터럽트와 예외 - 1

개요 인터럽트는 프로세서가 실행하는 명령어의 순서를 바꾸는 사건으로 정의한다. 이런 사건은 CPU의 내·외부에서 하드웨어적인 회로가 발생하는 전기적인 신호에 해당하다. ...

6월 11, 2018 · Jaejin Jang