namespace HeuristicLab.BenchmarkSuite.Problems { public class Digits : BenchmarkSuiteDataDescriptor { private const string name = "Digits"; private const string fileName = "Digits.csv"; private const string description = "Given an integer, print that integer’s digits each on their own line starting with the least significant digit.A negative integer should have the negative sign printed before the most significant digit."; protected override string FileName { get { return fileName; } } public override string Name { get { return name; } } public override string Description { get { return description; } } protected override int InputArgumentCount { get { return 1; } } protected override int OutputArgumentCount { get { return 1; } } public override ProblemData CreateProblemData() { return new ProblemData { Name = Name, Description = Description, Examples = CloneExamples(), BestResult = 0, WorstResult = 20, InputArgumentTypes = new[] { ExampleArgumentType.Integer }, OutputArgumentTypes = new[] { ExampleArgumentType.String }, TrainingCount = 100, TestCount = 1000, EnabledDataTypes = DataTypes.Exec | DataTypes.Integer | DataTypes.Boolean | DataTypes.Char | DataTypes.String, MaxSize = 300, EvalLimit = 600, ErcOptions = { ErcProbability = 0.05, IntegerErcOptions = { IsEnabled = true, Start = -10, End = 10 }, CharErcOptions = { IsEnabled = true, Constants = new [] { '\r' }, } } }; } protected override Example ParseExample(string[] input, string[] output) { return new Example { InputArgs = input, OutputArgs = output, InputInteger = ExampleArgumentConverter.ConvertIntegers(input[0]), OutputString = output, }; } } }