책뿌수기 - 기초가 든든한 데이터 베이스 6
인용하는 그림은 다양한 곳에서 가져왔음을 밝힙니다 Ch 6. 테이블 관리 Section 1. 테이블 생성 1.1 데이터 형식을 사용한 테이블 정의 CREATE TABLE 테이블이름 ( 열_이름 데이터 형식 [NOT NULL, UNIQUE, DEFAULT, CHECK ~], [PRIMARY KEY(열_이름)], [FOREIGN KEY(열_이름) REFERENCES 테이블_이름(열_이름)] ); ...
인용하는 그림은 다양한 곳에서 가져왔음을 밝힙니다 Ch 6. 테이블 관리 Section 1. 테이블 생성 1.1 데이터 형식을 사용한 테이블 정의 CREATE TABLE 테이블이름 ( 열_이름 데이터 형식 [NOT NULL, UNIQUE, DEFAULT, CHECK ~], [PRIMARY KEY(열_이름)], [FOREIGN KEY(열_이름) REFERENCES 테이블_이름(열_이름)] ); ...
인용하는 그림은 다양한 곳에서 가져왔음을 밝힙니다 Ch 5. SQL Server 설치 및 예제 데이터 베이스 구축 Section 2. 예제 데이터베이스 구축 데이터베이스는 시스템 DB와 사용자 DB로 나뉜다. 시스템 데이터베이스 역할 master 데이터베이스 시스템 정보, 초기값, 설정 기록 tempdb 데이터베이스 임시 테이블, 임시 저장 프로시저, 임시 저장공간 model 데이터베이스 생성되는 DB에 대한 템플릿 msdb 데이터베이스 SQL Server 에이전트에서 알림과 작업 예약에 사용 ...
인용하는 그림은 다양한 곳에서 가져왔음을 밝힙니다 Ch 4. 관계 대수 Section 1. 관계 대수 관계 대수는 릴레이션을 처리하는 연산의 집합 관계 대수의 피연산자는 릴레이션 연산 결과도 릴레이션 원하는 정보를 유도하는 절차적 언어 ...
인용하는 그림은 다양한 곳에서 가져왔음을 밝힙니다 Ch 3. 관계 데이터 모델과 제약조건 Section 1. 관계 데이터 모델 관계 데이터 모델(relation data model) 집합론과 논리 분야에 근거해 튼튼한 이론적 토대를 가지고 있다. 널리 사용되는 모델이다. 1.1 릴레이션 개념 ...
인용하는 그림은 다양한 곳에서 가져왔음을 밝힙니다 Ch 2. 데이터 모델 Section 1. 데이터 모델 1.1 데이터 모델의 개념 데이터베이스의 구조를 단순화, 추상화하여 체계적으로 표현하는데 사용되는 도구 1.2 데이터 모델의 구성요소 ...
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; }
제목 재밌네 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; }
요즘 다시 시작한 알고리즘 공부.. 쉬운거 부터 풀어 봅시다 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; }
인용하는 그림은 다양한 곳에서 가져왔음을 밝힙니다 Ch 1. DB 시스템 Section 1. DB 1.1 데이터와 데이터 베이스 개념 DB = 필요한 데이터를 모아 놓은 것 1.2 데이터와 정보 데이터 : 관찰하거나 측정하여 기술하는 가공되지 않은 사실이나 값 정보 : 의미 있고 쓸모 있는 내용으로 가공한 데이터 1.3 DB의 정의와 특징 ...
오랜~만에 소개팅 나갑니다. 소개팅 나가려고하니 괜히 또 사투리가 신경쓰이네요. 그거 알죠? 괜히 신경쓰면 말하는거 부자연스러워지는거? 로봇되는건 아니겠죠? (괜찮아요? 많이 놀랬죠?) ...