TLE in multiples of 3.

Why does using cin cout instead of scanf and printf gives tle for the question : ?
My code using printf and scanf :
This got AC in time 0.11
My code using cin and cout :
This got TLE. Should we not use cin and cout?

cin and cout run at about 3 times slower than scanf and printf and therefore chances of TLE are high for large inputs.

let us consider it is 8 times slow. my solution got AC for time 0.11 s. Then the time for 8 time slow input should be 0.88 s. Time limit is 1 s.

does your code contain only cin and cout? no. therefore you cannot just say 0.11*8. it doesnt work that way.