• Skip to primary navigation
  • Skip to content
  • Skip to footer
Wow Is This Error? Wow Is This Error? MJ Studio Dev Blog
  • Posts
  • Algorithm Note
  • PS Math
  • Number Theory
  • Tip
  • Problem Solve
  • iOS
    1. Home
    2. /
    3. BOJ 2938 - 3으로 나누어 떨어지지 않는 배열

    BOJ 2938 - 3으로 나누어 떨어지지 않는 배열

    April 18, 2023

    BOJ 2938 - 3으로 나누어 떨어지지 않는 배열

    image.png

    3으로 나눈 나머지를 생각했을 때, 111102222

    처럼 된 후, 0을 1과 2 사이들이나 양옆 끝에 끼워넣어주면 된다.

    구현이 더러워서 코드를 첨부 안한다.

    예외 케이스가 몇몇 있으니 주의해야 한다.

    그리고 입출력이 구데기다.

    Tags: 백준

    Categories: PS

    Updated: April 18, 2023

    Comments

    You may also enjoy

    thumbnail

    Swift Meta Type & .Self, & AnyClass

    June 10, 2025

    AnyClass

    thumbnail

    Any, AnyObject in Swift

    June 10, 2025

    Any and AnyObject

    thumbnail

    iOS Hot-Reloading with Inject

    June 8, 2025

    I have integrated krzysztofzablocki/Inject into my new SwiftUI Project and it was astonishing.

    thumbnail

    Swift DynamicProperty

    May 20, 2025

    DynamicProperty

    • GitHub
    © 2025 MJ Studio