Devlog
[백준 22864] 피로도
스터디/알고리즘 2022. 1. 10. 21:54

#include using namespace std; int main(){ int A, B, C, M; int fatigue = 0, time = 0, work = 0, rest = 0, burnout = 0; cin >> A >> B >> C >> M; rest = C; burnout = M; if(A > M){ cout

[백준 2606] 바이러스
스터디/알고리즘 2022. 1. 10. 21:47

#include using namespace std; int v, e; const int MAX = 101; int V[MAX][MAX] = { 0, }; bool checked[MAX] = { 0, }; int count = 0; void DFS(int x) { checked[x] = true; count++; for (int i = 1; i > v >> e; for (int i = 0; i > n >> m; V[n][m] = 1; V[m][n] = 1; } DFS(1); cout

[백준 20436] ZOAC 3
스터디/알고리즘 2022. 1. 10. 21:37

#include #include #include using namespace std; int main(){ string SL, SR; string str; int time = 0; string keyboard[3][10]={ {'q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p'}, {'a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l'}, {'z', 'x', 'c', 'v', 'b', 'n', 'm'} }; string Lk[] = {'q', 'w', 'e', 'r', 't', 'a', 's', 'd', 'f', 'g', 'z', 'x', 'c', 'v'}; string Rk[] = {'y', 'u', 'i', 'o', 'p', 'h', 'j'..

[2018-2] 웹프로그래밍II 프로젝트 - 장바구니 구현하기
학교 2022. 1. 6. 01:32

여태까지 수행한 과제랑 프로젝트 정리하면서 작성하는 글... 그 당시 프로젝트를 하면서 제일 힘들었던 부분이 장바구니 구현이였는데 이 부분만 따로 작성하고자 한다 장바구니 구현 (basket.php) 장바구니 01 장바구니 > 02 주문서작성/결제 > 03 주문완료 상품/옵션 정보 수량 상품금액 할인/적립 합계금액 배송일정 개의 상품금액 원 배송비 0원 원 선택 상품 삭제 선택 상품 주문

[2019-2] 프로그래밍실습II 빙고게임 과제
학교 2022. 1. 6. 01:17

#include #include #include using namespace std; #define ROW 5 #define COL 5 int Bingo[ROW][COL] = {0}; void initBoard(); void showBoard(); void eraseBoard(int num); int checkBoard(); int main() { int nb = 0; //빙고 줄 int num; //입력 번호 initBoard(); //배열 초기화 while (1) { showBoard(); //빙고판 출력 if (nb >= 3) { printf("\n\n ! ! B I N G O ! ! \n\n"); break; } else if (nb == 2) printf(" ! 2줄 맞았습니다 ! \n"); e..

[2019-2] 프로그래밍실습II 로또번호 생성 프로그램 과제
학교 2022. 1. 6. 01:17

#include #include #include #include using namespace std; void lottoGen(int lotto[]); int computeSum(const int lotto[]); int oddEven(const int lotto[]); int main() { int lotto[6]; int count = 0, find, num, sum, odd; srand((unsigned int)time(NULL)); while(count= 81 && sum = 2 && odd

[2019-2] 디지털신호처리 새 소리 만들기 과제
학교 2022. 1. 6. 01:16

매트랩으로 새소리 만들기 과제 clc clear all close all fs = 16000; %% Sampling 주파수 deltat = 1/fs; time = 0:deltat:0.5; %% 0.5초간 시간 k = 1600/0.5; %% Chirp 신호 기울기 : 0.5초간 900 Hz를 증가시킴 y2 = sin(2*pi*(600*time+k/2*time.^2)); %% 600 -> 1500 Hz 까지 0.5초 안에 바뀌는 소리 생성 soundsc(y2,fs); % 소리 출력 freq = 0:fs/length(time):fs/2; Y2 = 20*log10(abs(fft(y2))); figure plot(freq,Y2(1:length(freq))) xlabel('frequency [Hz]') grid on

[2019-2] 디지털신호처리 첩 신호 만들기 과제
학교 2022. 1. 6. 01:15

첩 신호: 주파수 성분이 정현 함수처럼 진동하는 신호 clear all close all f_sample = 8000; amp1 = 1; t = 0:(1/f_sample):amp1; y1 = amp1*cos(700*pi*t.*t + 440*pi*t); Fc = 4; y1 = vco( sin(2*pi*Fc*t), [400 700], f_sample); Fmax = f_sample/4; window_length = 128; Nfft = 128; Nover = 100; nn = 1:4:fix(length(y1)); [B,F,T] = specgram(y1(nn),Nfft,Fmax,[],Nover); B1 = B; F1 = F; T1 = T; subplot(211) plot(t(1:2000),y1(1:2000))..

검색 태그