For python users to save time using little trick to get input from file while running program on local machine.

Revision en3, by itsSabirHussain, 2020-04-17 01:47:33
import sys
import math
ONLINE_JUDGE =  __debug__
try:
	sys.stdin = open('input.in', 'r')
	sys.stdout = open('output.out', 'w')
except:
	pass
finally:
	#Actual code here
Tags #python 3, #code, #contests

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English itsSabirHussain 2020-04-17 01:47:55 29
en3 English itsSabirHussain 2020-04-17 01:47:33 88
en2 English itsSabirHussain 2020-04-17 01:45:57 54 Tiny change: 'import sys' -> 'Your title here...\n==================import sys'
en1 English itsSabirHussain 2020-04-17 01:43:39 258 Initial revision (published)