|
|
вернуться в форумHelp me. Why Output limit exceeded in test #1 Code: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Globalization; namespace _1601AntiCAPS { class Program { static void Main(string[] args) { string input = Console.In.ReadToEnd(); //string input; while (input != null) { Console.Write(input[0]); for (int i = 1; i < input.Length; i++) { if (input[i] >= 'A' && input[i] <= 'Z') { int c = Convert.ToInt32(input[i]); char character = (char)(c + 32); string text = character.ToString(); Console.Write(text); } else Console.Write(input[i]); } } } } } |
|
|