I’m new in problem solving.But i’m realizing i’m getting a Smack in online judges because i dont take input correctly and dont output the way the problem is asking.
The input is like first line ll consist a integer p,and p line follows.
in each line the first integer m and and m integers follow separated by space.
2 4 6
5 1 3 4 6 3
3 2 9
How ll I take this input …I ve done this but in a stupid way by doing a large array…
What is the efficient way or most possibly good way to take such inputs.