about | help | code help+videos | done | prefs |
You’re playing chess on a nice n x m board. Your opponent decided to place k bishops around the board. How many positions do you have to safely place your pawn? In chess, a bishop moves and captures along all 4 diagonals leading away from it. It can move as much as the entire length of a diagonal to do so, therefore you are not safe anywhere along any of the diagonals leading away from a bishop.
UIL2015_INVA_03_BISHOP([2, 2, 1, 0, 0]) → 2 UIL2015_INVA_03_BISHOP([2, 2, 1, 1, 1]) → 2 UIL2015_INVA_03_BISHOP([2, 2, 1, 0, 1]) → 2 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy