|
|
back to boardWhy is WA!! Can you HELP me? I tested it for many many times? [C#] 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]))); } } } } } |
|
|