출처 : https://www.swexpertacademy.com/main/code/problem/problemDetail.do #include #include using namespace std; #define MAX_N 20 int N, result, starti, startj;int map[MAX_N][MAX_N];bool used[101];int dir[4][2] = { { 1,1 },{ 1,-1 },{ -1,-1 },{ -1,1 } }; void dfs(int i, int j, int count, int comdrc){ used[map[i][j]] = true; if (i-1 == starti && j+1 == startj) { result = max(result, count); used[map..
출처 : https://www.swexpertacademy.com/main/code/problem/problemDetail.do #include #include using namespace std; #define MAX_N 9 int N, K, result, max_num;int map[MAX_N][MAX_N];bool check[MAX_N][MAX_N], used;int dir[4][2] = { { 1,0 },{ -1,0 },{ 0,1 },{ 0,-1 } }; void dfs(int i, int j, int count){ for (int d = 0; d = 0 && ..
출처 : https://www.swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AWIeW7FakkUDFAVH #include #include using namespace std; #define MAX_N 20 int i, j, N, X, K, cnt, result;int ga[MAX_N][MAX_N], se[MAX_N][MAX_N];bool visited[MAX_N][MAX_N], check; void input(){ int tmp; result = 0; cin >> N >> X; for (i = 0;i > tmp; ga[i][j] = tmp; se[j][i] =..
출처 : https://www.swexpertacademy.com/main/code/problem/problemDetail.do #include #include using namespace std; int i, j, K, result;int a[4][8]; int ro[40][2]; int check[4][2]; void rotation(int i, int wh){ int tmp; if (wh == 1) { tmp = a[i][1]; a[i][1] = a[i][0]; for (j = 2;j = ..
출처 : https://www.swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AWHPkqBqAEsDFAUn #include #include using namespace std; #define MAX_N 101#define MAX_M 10000 int i, j, N, result;int a[MAX_N], check[MAX_M]; void input(){ cin >> N; for (i = 1;i > a[i]; for (i = 0;i 0 && j+a[i]> T; while (T--) { input(); cal(); cout
출처 : https://www.swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AV5PpFQaAQMDFAUq #include #include using namespace std; int i, j, t, T, result;int d, m, m3, y;int dp[15]; void input(){ cin >> d >> m >> m3 >> y;} void cal(){ for (i = 3;i > dp[i]; dp[i] = min(min(dp[i - 1] + dp[i] * d, dp[i - 1] + m), dp[i - 3] + m3); } result = min(dp[14], y);} int main(){ cin >> T; t = 1; w..
출처 : https://www.swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AV4suNtaXFEDFAUf #include #include using namespace std; #define MAX_N 12 int i, j, N, T, t;int a[MAX_N][MAX_N],a2[MAX_N][MAX_N], result1, result2, d1, d2; void input(){ cin >> N; for (i = 0;i a[i][j]; for (i = 0;i < N;i++) for (j = 0;j < N;j++) a2[i][j] = a[i][j];} void cal1(){ int l, r, u, ..
- Total
- Today
- Yesterday
- 미세먼지 안녕!
- 게리맨더링 2
- SWEA
- 입출력
- 역량 테스트
- 2018 카카오 블라인드 채용
- 17142
- 17144
- 트렌드
- SW Expert Academy
- STL
- scanf
- 이차원 배열과 연산
- DFS
- 알고리즘
- DP
- 17140
- 백준
- 삼성
- 연구소 3
- string
- 새로운 게임 2
- 팁
- boj
- 17143
- 2018 KAKAO BLIND RECRUITMENT
- 17779
- 17837
- 시간 복잡도
- hackerrank
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |