Well somehow i've run into a very trivial stupid situation in the problem "Elimination". The size of the input is not defined , so wat i do is grab each lines using getline() function , split every number into tokens (delimited by a space) and convert them back to integers.But this seems to be too slow and hence i'm gettin a TLE. Is there any other trick to get the input using scanf or something ?
created
last reply
- 7
replies
- 282
views
- 4
users
- 1
link