+ 15

â There is an idea to reduce this problem : 1st input should be number of lines of input to taken(take it as n) & then then run a loop to take input , n number of times .

+ 15

â There is an idea to reduce this problem : 1st input should be number of lines of input to taken(take it as n) & then then run a loop to take input , n number of times .