changed B00 by accident
This commit is contained in:
parent
346db007f5
commit
a9af7c98e6
@ -5,13 +5,13 @@ import sys
|
|||||||
# global outputResult
|
# global outputResult
|
||||||
|
|
||||||
|
|
||||||
# fsa_description = sys.argv[1]
|
fsa_description = sys.argv[1]
|
||||||
# inputWords = sys.argv[2]
|
inputWords = sys.argv[2]
|
||||||
# outputResult = sys.argv[3]
|
outputResult = sys.argv[3]
|
||||||
|
|
||||||
fsa_description = "fsa_description.arg"
|
# fsa_description = "fsa_description.arg"
|
||||||
inputWords = "test1.in"
|
# inputWords = "test1.in"
|
||||||
outputResult = "test1.out"
|
# outputResult = "test1.out"
|
||||||
|
|
||||||
def readDescription(currentPos, charInput):
|
def readDescription(currentPos, charInput):
|
||||||
with open(fsa_description, 'r', encoding="utf-8") as descript:
|
with open(fsa_description, 'r', encoding="utf-8") as descript:
|
||||||
@ -35,11 +35,11 @@ with open(inputWords, 'r', encoding="utf-8") as inputString:
|
|||||||
pos = newPos
|
pos = newPos
|
||||||
|
|
||||||
print(answersYN)
|
print(answersYN)
|
||||||
# with open(outputResult, 'w', encoding="utf-8") as output:
|
with open(outputResult, 'w', encoding="utf-8") as output:
|
||||||
# for i in range(0, len(answersYN)):
|
for i in range(0, len(answersYN)):
|
||||||
# if answersYN[i] == '1':
|
if answersYN[i] == '1':
|
||||||
# output.write("YES\n")
|
output.write("YES\n")
|
||||||
# elif answersYN[i] == '0':
|
elif answersYN[i] == '0':
|
||||||
# output.write("NO\n")
|
output.write("NO\n")
|
||||||
|
|
||||||
|
|
||||||
|
9
TaskB00/test1.out
Normal file
9
TaskB00/test1.out
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
NO
|
||||||
|
YES
|
||||||
|
NO
|
||||||
|
NO
|
||||||
|
NO
|
||||||
|
NO
|
||||||
|
NO
|
||||||
|
NO
|
||||||
|
NO
|
Loading…
Reference in New Issue
Block a user