본문 바로가기

Game Develop

검색하기
Game Develop
프로필사진 MaxLevel

  • 분류 전체보기 (746)
    • C++ (46)
      • C++ (33)
      • winAPI (2)
      • GeeksForGeeks Quiz (6)
      • Effective C++ (5)
    • ComputerGraphics (25)
      • DirectX (11)
      • My Project (14)
    • Design Pattern (0)
    • 이런저런 이야기들 (0)
    • Algorithm (612)
      • Programmers (138)
      • Baekjoon (455)
      • Algorithm (14)
      • HackerRank (2)
      • Softeer (3)
    • UnrealEngine5 (58)
      • Client (57)
      • Dedicated Server (1)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2026/02   »
일 월 화 수 목 금 토
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
Tags
  • algorithm
  • Effective C++
  • GeeksForGeeks
  • 줄 세우기
  • UnrealEngine4
  • 티스토리챌린지
  • NRVO
  • UE5
  • 프로그래머스
  • Unreal Engine5
  • winapi
  • DirectX11
  • C
  • 1563
  • directx
  • RootMotion
  • 백준
  • TObjectPtr
  • baekjoon
  • 2294
  • softeer
  • C++
  • Programmers
  • 팰린드롬 만들기
  • RVO
  • UnrealEngine5
  • IFileDialog
  • 오블완
  • 언리얼엔진5
  • const
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록MOD (1)

Game Develop

나머지연산 공식.

(A + B) % p = ((A % p) + (B % p)) % p (A * B) % p = ((A % p) * (B % p)) % p (A - B) % p = ((A % p) - (B % p) + p) % p (A / B) % p = (A * B^(p-2)) % p = ((A % p) * (B^(p-2) % p)) % p a^b => a^(b/2) * a^(b/2) // b가 짝수일 경우. a^b => a^(b/2) * a^(b/2) * a // b가 홀수인 경우.

Algorithm/Algorithm 2022. 12. 4. 23:28
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바