Program Programming Programmer

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

Josephus 2

BAEKJOON 1158 - 조세퍼스 문제

문제: https://www.acmicpc.net/problem/1158 유명한 josephus 문제입니다. linked list 을 이용해 풀었습니다. 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364#pragma warning (disable:4996)#include #include #include #include #include using namespace std; void josephus(int n, int m){ list survivors; for (int i = 1; i

Algorithm, Data structure/Solved Algorithmic Problem 2017.12.21

UVa -Power Crisis

During the power crisis in New Zealand this winter (caused by a shortage of rain and hence low levels in the hydro dams), a contingency scheme was developed to turn off the power to areas of the country in a systematic, totally fair, manner. The country was divided up into N regions (Auckland was region number 1, and Wellington number 13). A number, m, would be picked `at random', and the power ..

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

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

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • 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.

티스토리툴바