Skip to content

Instantly share code, notes, and snippets.

@Kaido0729
Last active December 20, 2021 20:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kaido0729/2d90c48332faec0ca8ca82ad7f4cece9 to your computer and use it in GitHub Desktop.
Save Kaido0729/2d90c48332faec0ca8ca82ad7f4cece9 to your computer and use it in GitHub Desktop.
マスクナンバー パターン計算式
000 (i + j) % 2 = 0
001 i % 2 = 0
010 j % 3 = 0
011 (i + j) % 3 = 0
100 (i / 2 + j / 3) % 2 = 0
101 (i × j) % 2 + (i × j) % 3 = 0
110 ((i × j) % 3 + i × j) % 2 = 0
111 ((i × j) % 3 + i + j) % 2 = 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment