Program Programming Programmer

  • 홈
  • 방명록
  • 관리자
  • 글쓰기

bit mask 2

BAEKJOON 1029 - 그림 교환

문제: https://www.acmicpc.net/problem/1029 memoization과 bit mask 를 이용한 dynamic programming 방법과 재귀함수를 이용한 DFS 을 이용해 풀어봤습니다. my solvingc++1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071#include #include #include #include #include #include using namespace std; const int MAX_N = 15;int n;int prices[MAX_N + 1][MAX_N +..

Algorithm, Data structure/Solved Algorithmic Problem 2016.10.08

BAEKJOON 1016 - 제곱 ㄴㄴ 수

문제: https://www.acmicpc.net/problem/1016 시간 복잡도를 줄이기위해 에라토스테네스의 체 방법을 사용해야했고, 공간 복잡도를 줄이기 위해 bit mask 방법과 주어진 최소값부터 에라토스테네스의 체를 적용하는 방법을 사용해 풀었습니다. my solvingc++12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061#include #include #include #include using namespace std;typedef long long ll; const ll MAX_N = 1000003;unsigned char sieve[(..

Algorithm, Data structure/Solved Algorithmic Problem 2016.07.31
이전
1
다음
더보기
프로필사진

Program Programming Programmer

프로그래머

  • 분류 전체보기 (142)
    • Deep learning (17)
    • Python (0)
    • Algorithm, Data stru.. (125)
      • Solved Algorithmic P.. (120)
      • Popular Algorithms (3)
      • Basic concepts (2)

Tag

convex hull, Math, Divide And Conquer, Base Conversion, binomial coefficient, Simulation, memoization, GREEDY, string, dfs, Shoelace Formula, Complete Search, dynamic programming, Deterministic finite automaton, bit mask, Erathosthenes, Josephus, bipartite matching, binary search, sort,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

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

티스토리툴바