importloggingfromtestcase_maker.generatorimportTestcaseGeneratorfromtestcase_maker.valuesimportValueGroup,NamedValue,RandomInt,LoopValue,ValueReflogging.basicConfig(level=logging.INFO)# Firstly, create a new container to make the testcase stdin structure.values=ValueGroup()# The first line contains an integer T, the total number of testcases.values.add(NamedValue(name="T",value=RandomInt(min=1,max=1000)))values.newline()# Then follow T lines, each line contains an integer N.values.add(LoopValue(value=RandomInt(min=1,max=1000000),amount=ValueRef(name="T"),delimiter="\n"))# Generate the testcasesgenerator=TestcaseGenerator(values=values,answer_script="./solution.py")generator.generate()