ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1601. AntiCAPS

Help me. Why Output limit exceeded in test #1
Posted by ThanhKa_HCMUS 8 Aug 2015 06:23
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]);
                }
            }
        }
    }
}