Question: In c++ please roblem E. Eddard Input file: Output file Time limit: Memory limit: standard input standard output 1 second 256 megabytes erfell and Warden
roblem E. Eddard Input file: Output file Time limit: Memory limit: standard input standard output 1 second 256 megabytes erfell and Warden of the North, has been feeling rather cold lately. Hle recalls the old words of House Stark, "Winter is coming," and wonders whether or not this is the case. For the past few days, Lord Stark has kept track of whether be felt warm or cold. If Lord Stark has felt cold three days in a row, it must be the case that winter is coming. Otherwise, it will be another year of summer. Can you determine which outcome is true? Input The first line of input is the number of temperature recordi ine of input is the number of temperature recordings, n (3Sns10). Each of the next n lines contains one lowercase word describing the temperature: "warm" or old Output If there are three consecutive cold days in the recordings, then print Winter is coming If not, then print Another year of summer Examples standard input atandard output Winter is coming cold cold cold Another year of sunner cold cold varm cold cold cold
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
