Reduce Your Python Code Execution time !!!

Revision en1, by monu_dixit, 2022-09-19 06:26:11

Hello coders..

  1. Use sys module in your code for taking input.
  2. Don't convert input array into list while taking input like this ->> "(a = list(map(int,input().split(' '))))" , use "(input().split())" and for iterating this input use enumerators.
Tags python3, fast

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English monu_dixit 2022-09-19 06:26:55 30 Tiny change: 'g input.\n2. Don't' -> 'g input.\n input = sys.stdin.readline\n2. Don't'
en1 English monu_dixit 2022-09-19 06:26:11 302 Initial revision (published)