Use the following code to create three sets of a+b data
import cyaron
import numpy
for i inrange(1,4):
test_data = cyaron.IO(file_prefix="D:\setproblem\data",data_id=i,input_suffix=".in", output_suffix=".out")#路径之中不要包含其他字符,只包含英文字母
a=numpy.random.randint(0,100)
b=numpy.random.randint(0,100)
test_data.input_writeln(a,b)
test_data.output_gen("D:\setproblem\A.exe")#填上标程编译之后的可执行文件.exe的地址
I posted the effect, the meaning in the code can be imagined, the following A.exe is a compiled executable file of a+b.cpp, because characters other than English characters cannot appear in the path, so I changed it Up