题解 | #牛牛的空格分隔#
牛牛的空格分隔
https://www.nowcoder.com/practice/b2203c4a5c304536a7f577bc885de511
using System; public class Program { public static void Main() { string S = ""; string str = ""; while ((S = Console.ReadLine()) != null) { str += S + " "; } string[] arr = str.Split(" "); double Num = double.Parse(arr[2]); //人比较笨,只想到这种方法 Console.Write(arr[0]+" "+arr[1]+" "+Num.ToString("F6")); } }