Question
Format Input The input will consist of several lines of input in testdata.in file. On the first line, there is an integer T the number
Format Input The input will consist of several lines of input in testdata.in file. On the first line, there is an integer T the number of test cases. Each test case will be given 2 integers: N - the field size and M - the number of seconds. The next N line is a field of grass with the character # as the grass and the character F as the fire. There is only 1 character F at the beginning. There is also a blank line after each test case. Format Output Output should be expressed in format Case # X: - X is the number of the test case (starting from 1), and followed by N lines, the configuration of field after M seconds. You should give a blank line after each test case. Constraints 1 T 100 1 N, M 100 Sample Input (testdata.in) 3 3 1 ### ### F## 3 2 ### ### F## Case #1: ### ### F## Case #2: ### FF# FF# Case #3: FFF FFF FFF
Program dalam bahasa C
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started