题解 | #出生日期输入输出#

出生日期输入输出

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));
    }
}

全部评论

相关推荐

09-22 22:22
中山大学 Java
双尔:赌对了,不用经历秋招的炼狱真的太好了,羡慕了
点赞 评论 收藏
分享
10-01 09:50
门头沟学院 Java
肖先生~:这个人真的很好,点赞
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务