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

Правка en3, от 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
Теги #python 3, #code, #contests

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en4 Английский itsSabirHussain 2020-04-17 01:47:55 29
en3 Английский itsSabirHussain 2020-04-17 01:47:33 88
en2 Английский itsSabirHussain 2020-04-17 01:45:57 54 Tiny change: 'import sys' -> 'Your title here...\n==================import sys'
en1 Английский itsSabirHussain 2020-04-17 01:43:39 258 Initial revision (published)