BGGBR

  • 홈

알고리즘과 자료구조/SWEA 3

SWEA 1217 거듭제곱

SWEA 1217 거듭제곱 #include using namespace std; int tc; int n, m; int dfs(int num, int fixNum, int cnt){ if(cnt == m){ return num; } dfs(num * fixNum, fixNum, cnt + 1); } int main(void){ ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); tc = 10; int x; int totalNum; while(tc--){ cin >> x; cin >> n >> m; totalNum = dfs(n, n, 1); cout

알고리즘과 자료구조/SWEA 2019.10.24

SWEA 1954 달팽이 숫자

SWEA 1954 달팽이 숫자 #include #include using namespace std; #define endl "\n" #define MAX 11 bool check[MAX][MAX]; int map[MAX][MAX]; int tc; int n, k; const int dy[] = {0, 1, 0, -1}; const int dx[] = {1, 0, -1, 0}; void rotate(int y, int x, int dir, int num){ check[y][x] = true; map[y][x] = num; int ny = y + dy[dir]; int nx = x + dx[dir]; if(nx = n || nx >= n || check[ny][nx] == 1){ dir ..

알고리즘과 자료구조/SWEA 2019.10.24

SWEA 1231 Inorder

SWEA 1231 Inorder 문제 #include #include #include using namespace std; #define endl "\n" typedef struct _NODE{ char Data; _NODE *Left; _NODE *Right; }NODE; int tc = 10; int totalNum; bool flag = false; NODE *arr[101]; void inorder(NODE* tmp){ if(tmp == NULL){ return; } inorder(tmp -> Left); cout Data; inorder(tmp -> Right); } int main(void){ for(int k = 1; k > totalNum; if (totalNum % 2 == 1) flag..

알고리즘과 자료구조/SWEA 2019.10.23
1
더보기
프로필사진

  • 분류 (29)
    • 알고리즘과 자료구조 (28)
      • 백준 (24)
      • SWEA (3)
      • 자료구조 (1)
    • 공부 (0)
      • Vue.js (0)
      • Node.js (0)
      • Javascript (0)

Tag

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/07   »
일 월 화 수 목 금 토
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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바