Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Instant Reference

Authors: Gruber, Martin Gruber

2nd Edition

0782125395, 9780782125399

Students also viewed these Databases questions

Question

=+management system of the MNE?

Answered: 1 week ago