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

出生日期输入输出

http://www.nowcoder.com/practice/4a4a9dd1edb6453ba4a0432319200743

using System;
class Program{
    static void Main(){
        string s=Console.ReadLine();
        Console.WriteLine("year={0}\nmonth={1}\ndate={2}",
                          s.Substring(0,4),
                          s.Substring(4,2),
                          s.Substring(6,2));
    }
}

全部评论

相关推荐

深夜书店vv:腾讯是这样的,去年很多走廊都加桌子当工区
点赞 评论 收藏
分享
评论
2
收藏
分享

创作者周榜

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