I AM getting TLE

Does time limit also depend upon number of variable used. I submitted a code it showed wrong answer. then i corrected it , bt in process of correction i added a new variable and resubmitted it and now it showing TLE …

Typically it does not depend on number of variables. The reason why you got WA and TLE later is, that judge is running your program with different inputs, so your fix fixed some bug, but on next test case you got TLE.