B. Frodo and pillows time limit per test:1 second memory limit per test:256 megabytes input:standard input output:standard output n hobbits are planning to spend the night at Frodo's house. Frodo has n beds standing in a row and m pillows (n ≤ m). Ea…