题解 | #出生日期输入输出#
出生日期输入输出
https://www.nowcoder.com/practice/4a4a9dd1edb6453ba4a0432319200743
public class Program { public static void Main() { string s = System.Console.ReadLine(); System.Console.WriteLine("year=" + s.Substring(0,4)); System.Console.WriteLine("month=" + s.Substring(4,2)); System.Console.WriteLine("date=" + s.Substring(6,2)); } }