Program Programming Programmer

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

Divide And Conquer 2

BAEKJOON 1992 - 쿼드트리

문제: https://www.acmicpc.net/problem/1992 분할정복 문제입니다. 시작점과 크기를 인수로 받아 해당 영역이 모두 같은지 확인을 한 후 같지 않다면 4 구역으로 분할해 재귀 호출을 하여 풀어봤습니다. 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960#pragma warning (disable:4996)#include #include #include #include using namespace std; int n;bool tree[65][65]; void compress(int startY, int startX, int size){..

Algorithm, Data structure/Solved Algorithmic Problem 2017.01.05

BAEKJOON 1629 - 곱셈

문제: https://www.acmicpc.net/problem/1629 주어진 a, b, c 의 값이 크기 때문에 시간 복잡도를 줄이기 위해 분할 정복을 사용하고, 오버 플로를 방지하기 위해 중간에 얻어지는 값을 c 로 나눠가며 풀어봤습니다. 123456789101112131415161718192021222324252627282930#include #include #include #include #include using namespace std;typedef long long ll; ll multiply(ll a, ll b, ll c){ if (b == 0) return 1; int multi = multiply(a, b / 2, c); if (b % 2 == 0) return multi * mult..

Algorithm, Data structure/Solved Algorithmic Problem 2016.12.24
이전
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

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

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

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

티스토리툴바