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 1001. Reverse Root

Why is WA!! Can you HELP me? I tested it for many many times? [C#]
Posted by youzelin 27 May 2008 21:04
using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;

namespace UralACM
{
    class Program
    {
        static void Main(String[] args)
        {
            Problems.ReverseRoot_1001();
        }
    }

    class Problems
    {
        public static void ReverseRoot_1001()
        {
            for (String input = Console.ReadLine(); input != null; input = Console.ReadLine())
            {
                if (input == String.Empty) continue;
                String[] numArray = input.Split(new String[] { " ", "\t" }, StringSplitOptions.RemoveEmptyEntries);
                for (int i = numArray.Length - 1; i >= 0; --i)
                {
                    Console.WriteLine("{0:F4}", Math.Sqrt(Double.Parse(numArray[i])));
                }
            }
        }
    }
}