16 lines
398 B
Python
16 lines
398 B
Python
import random
|
|
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:
|
|
f.write(str(M)+' '+str(N)+' '+str(K)+'\n')
|
|
for i in arr:
|
|
f.write(str(i)+' ')
|
|
f.write('\n')
|
|
|
|
os.system("./main.out < ./fuck.txt")
|
|
print("")
|
|
os.system("./correct.out < ./fuck.txt") |