blob: 70e90205776b214536a8628fd42f51d4bf8f4ae6 (
plain)
1
2
3
4
5
6
7
|
from io import StringIO
import sys
# Running the code in a separate file because there can be variable conflicts in the grader.py file (i.e. output)
def run(file_path, test_input):
sys.stdin = StringIO(test_input) # Enter the test input
exec(open(file_path).read()) # Run the code
|