섬나라 아일랜드 #include #include #include #include /* run this program using the console pauser or add your own getch, system("pause") or input loop */ using namespace std; int dx[8] = {0, 1, 1, 1, 0, -1, -1, -1}; int dy[8] = {-1, -1, 0, 1, 1, 1, 0, -1}; int map[30][30]; struct Loc { int x; int y; Loc(int a, int b){ x = a; y = b; } }; queue Q; int main() { int n, k, cnt=0; //freopen("input.txt", "rt",..
수식만들기 #include #include #include using namespace std; int a[20], op[5], n, maxi=-2147000000, mini=2147000000; void DFS(int L, int res){ if(L==n){ if(res>maxi) maxi=res; if(res0){ op[0]--; DFS(L+1, res+a[L]); op[0]++; } if(op[1]>0){ op[1]--; DFS(L+1, res-a[L]); op[1]++; } if(op[2]>0){ op[2]--; DFS(L+1, res*a[L]); op[2]++; } if(op[3]>0){ op[3]--; DFS(L+1, res/a[L]); op[3]++; } } } int main(){ freo..
피자배달거리 #include #include #include /* run this program using the console pauser or add your own getch, system("pause") or input loop */ using namespace std; int x1, x2, y1, y2, ch[20], sum, dis, min_dis, m, min_res=2147000000; vector hs; vector pz; void DFS(int s, int L) { if(L==m) { sum=0; for(int i=0; isum) min_res=sum; } else { for(int i=s; i>n>>m; for(int i=1; ik; if(k==1) hs.push_back(make_p..
복면산 문제 #include /* run this program using the console pauser or add your own getch, system("pause") or input loop */ using namespace std; int a[10], ch[10]; int send() { return a[6]*1000+a[1]*100+a[3]*10+a[0]; } int more() { return a[2]*1000+a[4]*100+a[5]*10+a[1]; } int money() { return a[2]*10000+a[4]*1000+a[3]*100+a[1]*10+a[7]; } void DFS(int L) { if(L==8) { if(send()+more()==money()){ if(a[2]..
#include #include /* run this program using the console pauser or add your own getch, system("pause") or input loop */ using namespace std; int ch[100], n, sum=0, res=-2147000000; vector map[20]; vector T; vector P; void DFS(int L, int sum) { if(L==n+1) { if(sum>res){ res=sum; } } else { if(L+T[L]
코드 #include #include #include #include /* run this program using the console pauser or add your own getch, system("pause") or input loop */ using namespace std; int n, m, ch[100], res[100], a[100], cnt=0;; void DFS(int L){ int i; if(L==m){ for(i=0; i
자바스크립트로 파일내용을 Unit8Array 인코딩하고 인코딩한 내용을 다시 디코딩해서 가져올 수 있다. 1. input 파일과 encoding, decoding 내용을 가져올 textarea Uint8Array encoding Uint8Array decoding 2. 스크립트 코드 파일 내용만 읽어온다면 FileReader객체의 readAsText를 사용할 수 있지만 Unit8Array를 사용할 경우 readAsArrayBuffer를 사용해야 한다.
- Total
- Today
- Yesterday
- server side rendering
- C
- BFS
- react
- 배열
- 클래스
- C++
- 구조체
- Java
- 소프트웨어
- 세마포어
- 인접행렬
- stackframe
- 입출력장치
- 병행프로세스
- 스텍
- 재귀함수
- 퀵정렬
- client side rendering
- 동적프로그래밍
- 운영체제
- 알고리즘
- 이진탐색
- 인접리스트
- 자료구조
- 교착상태
- javascript
- 최단경로
- Stack
- dfs
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |