You are viewing a single comment's thread. Return to all comments →
It seems that in C# the only way to read long string from standard input is this code:
Console.SetIn(new StreamReader(Console.OpenStandardInput(8192), Encoding.Default, false, 8192)); string s = Console.ReadLine();
It works locally, but for some reason s==null on test-server, so all long test-cases are failing.
Seems like cookies are disabled on this browser, please enable them to open this website
Ice Cream Parlor
You are viewing a single comment's thread. Return to all comments →
It seems that in C# the only way to read long string from standard input is this code:
Console.SetIn(new StreamReader(Console.OpenStandardInput(8192), Encoding.Default, false, 8192)); string s = Console.ReadLine();
It works locally, but for some reason s==null on test-server, so all long test-cases are failing.