One-Four Overload codeforces solution – Alice has an empty grid with nn rows and mm columns. Some of the cells are marked

  One-Four Overload codeforces solution Alice has an empty grid with nn rows and mm columns. Some of the cells are marked, and no marked cells are adjacent to the edge of the grid. (Two squares are adjacent if they share a side.) Alice wants to fill Continue reading One-Four Overload codeforces solution – Alice has an empty grid with nn rows and mm columns. Some of the cells are marked

Non-Decreasing Dilemma codeforces solution – Alice has recently received an array a1,a2,…,ana1,a2,…,an for her birthday

  Non-Decreasing Dilemma codeforces solution Alice has recently received an array a1,a2,…,ana1,a2,…,an for her birthday! She is very proud of her array, and when she showed her friend Bob the array, he was very happy with her present too! However, soon Bob Continue reading Non-Decreasing Dilemma codeforces solution – Alice has recently received an array a1,a2,…,ana1,a2,…,an for her birthday

Expression Evaluation Error codeforces solution – On the board, Bob wrote nn positive integers in base 1010 with sum ss

  Expression Evaluation Error codeforces solution On the board, Bob wrote nn positive integers in base 1010 with sum ss (i. e. in decimal numeral system). Alice sees the board, but accidentally interprets the numbers on the board as base-1111 integers and adds them up (in base 1111). What numbers Continue reading Expression Evaluation Error codeforces solution – On the board, Bob wrote nn positive integers in base 1010 with sum ss

Carrying Conundrum codeforces solution – Alice has just learned addition. However, she hasn’t learned the concept of “carrying” fully — instead of carrying to the next column, she carries to the column two columns to the left.

  Carrying Conundrum codeforces solution Alice has just learned addition. However, she hasn’t learned the concept of “carrying” fully — instead of carrying to the next column, she carries to the column two columns to the left. For example, the regular way to evaluate the sum 2039+29762039+2976 would Continue reading Carrying Conundrum codeforces solution – Alice has just learned addition. However, she hasn’t learned the concept of “carrying” fully — instead of carrying to the next column, she carries to the column two columns to the left.

MEXor Mixup codeforces solution – Alice gave Bob two integers aa and bb

  MEXor Mixup codeforces solution Alice gave Bob two integers aa and bb (a>0a>0 and b≥0b≥0). Being a curious boy, Bob wrote down an array of non-negative integers with MEXMEX value of all elements equal to aa and XORXOR value of all elements equal to bb. What is the shortest possible length of the array Bob wrote? Continue reading MEXor Mixup codeforces solution – Alice gave Bob two integers aa and bb

Domino Disaster codeforces solution – Alice has a grid with 22 rows and nn columns

  Domino Disaster codeforces solution Alice has a grid with 22 rows and nn columns. She fully covers the grid using nn dominoes of size 1×21×2 — Alice may place them vertically or horizontally, and each cell should be covered by exactly one domino. Now, she decided to Continue reading Domino Disaster codeforces solution – Alice has a grid with 22 rows and nn columns