diff --git a/Codeforces.Test/FileNameGenerator.cs b/Codeforces.Test/FileNameGenerator.cs new file mode 100644 index 0000000..d73de7a --- /dev/null +++ b/Codeforces.Test/FileNameGenerator.cs @@ -0,0 +1,19 @@ +using System.Collections; + +namespace Codeforces.Test; + +public class FileNameGenerator : IEnumerable +{ + private readonly string inputFolder = @"../../../Input"; + public IEnumerator GetEnumerator() + { + foreach (var input in Directory.GetFiles(inputFolder)) + { + string name = Path.GetFileName(input); + string output = $"../../../Output/{name}.a"; + yield return new object[] { input, output }; + } + } + + IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); +} \ No newline at end of file