Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 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
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