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

出生日期输入输出

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

全部评论

相关推荐

酷酷的喜马拉雅山:感觉这比一直在初筛不动的好多了
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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