From b11227be2d4477d3a3ce2fa3a6447d0fd82b8f1c Mon Sep 17 00:00:00 2001 From: Serghei Cebotari Date: Wed, 9 Aug 2023 15:10:40 +0300 Subject: Fix last line --- Codeforces.Console/IOTester.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Codeforces.Console') diff --git a/Codeforces.Console/IOTester.cs b/Codeforces.Console/IOTester.cs index c5ffc77..8fdb931 100644 --- a/Codeforces.Console/IOTester.cs +++ b/Codeforces.Console/IOTester.cs @@ -33,7 +33,7 @@ namespace Codeforces { if (stdOut == null) { - return ""; + return string.Empty; } else { @@ -43,7 +43,7 @@ namespace Codeforces public static string[] GetOutputLines() { - return GetOutput().Split(Environment.NewLine); + return GetOutput().Split(Environment.NewLine).SkipLast(1).ToArray(); } public static IList GetOutputLinesAsList() -- cgit v1.2.3