Knowledge Cards solution codeforces

Knowledge Cards solution codeforces Knowledge Cards time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Pak Chanek, a renowned scholar, invented a card puzzle using his knowledge. In the puzzle, you are given a board with 𝑛n rows and 𝑚m columns. Let (𝑟,𝑐)(r,c) represent the cell in the 𝑟r-th row and the 𝑐c-th column. … Read more

Jumbo Extra Cheese 2 solution codeforces

Jumbo Extra Cheese 2 time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Pak Chanek has 𝑛n two-dimensional slices of cheese. The 𝑖i-th slice of cheese can be represented as a rectangle of dimensions 𝑎𝑖×𝑏𝑖ai×bi. We want to arrange them on the two-dimensional plane such that: Each edge of each … Read more