CodeChef: April Long Challenge | Chef and Dice | SDICE | Solution

View on Codechef Chef has NN 6-sided standard dice. Each die has dimensions 1×1×11×1×1. Since Chef is bored during the quarantine, he decides to stack dice for fun. First, Chef forms four vertical stacks of dice (not necessarily with the same height; empty stacks are allowed) on his table, which together make up a pile of dice with …

CodeChef: April Long Challenge | Chef and Dice | SDICE | Solution Read More »