Auto run.

This commit is contained in:
unlockable
2023-11-29 15:29:37 +08:00
parent c2c6db662c
commit d71b6cba5d

View File

@@ -1,8 +1,8 @@
import random
import sys
M = random.randint(10,1000)
N = random.randint(10,1000)
K = random.randint(10,1000)
import os
M = random.randint(10000,100000)
N = random.randint(10000,100000)
K = random.randint(10000,100000)
arr = list(range(0,M))
random.shuffle(arr)
with open('./fuck.txt','w') as f:
@@ -10,3 +10,7 @@ with open('./fuck.txt','w') as f:
for i in arr:
f.write(str(i)+' ')
f.write('\n')
os.system("./main.out < ./fuck.txt")
print("")
os.system("./correct.out < ./fuck.txt")