可运行
This commit is contained in:
parent
934fcdd4af
commit
c758f31365
|
|
@ -1,4 +1,5 @@
|
|||
import sys
|
||||
import os
|
||||
|
||||
is_python3 = sys.version_info[0] == 3
|
||||
input_queue = []
|
||||
|
|
@ -34,7 +35,8 @@ def override_input():
|
|||
else:
|
||||
import __builtin__ as builtins
|
||||
|
||||
with open("user_code/input.txt") as file:
|
||||
print(os.path.abspath(__file__))
|
||||
with open("/Users/weiwang/PycharmProjects/lcparser/user_code/input.txt") as file:
|
||||
global input_queue
|
||||
input_queue = list(file.readlines())
|
||||
|
||||
|
|
@ -65,5 +67,5 @@ class UnbufferedWrite(object):
|
|||
|
||||
|
||||
def get_stdout_wrapper():
|
||||
return UnbufferedWrite(open("user_code/stdout.txt", "w"))
|
||||
return UnbufferedWrite(open("/Users/weiwang/PycharmProjects/lcparser/user_code/stdout.txt", "w"))
|
||||
|
||||
|
|
|
|||
|
|
@ -46,8 +46,8 @@ class Solution:
|
|||
return [0,1]
|
||||
import sys
|
||||
import os
|
||||
from user_code.precompiled import __DeserializerRapid__ as __Deserializer__
|
||||
from user_code.precompiled import __SerializerRapid__ as __Serializer__
|
||||
from user_code.precompiled.__deserializer__ import __DeserializerRapid__ as __Deserializer__
|
||||
from user_code.precompiled.__serializer__ import __SerializerRapid__ as __Serializer__
|
||||
|
||||
def _driver():
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
|
||||
Loading…
Reference in New Issue