import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
String time=sc.next();
Date a=new Date();
a.Set(time);
a.print();
}
}
class Date{
private String year,month,day;
public void Set(String time){
String s[]=time.split("-");
this.year=s[0];
this.month=s[1];
this.day=s[2];
}
public void print(){
System.out.print(year+":"+month+":"+day);
}
}
0.0分
1 人评分
C语言训练-求函数值 (C语言代码)浏览:919 |
2003年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码)浏览:559 |
C语言程序设计教程(第三版)课后习题5.4 (C语言代码)浏览:672 |
不容易系列2 (C语言代码)浏览:603 |
C语言程序设计教程(第三版)课后习题5.7 (C语言代码)浏览:577 |
【排队买票】 (C语言代码)浏览:906 |
C语言程序设计教程(第三版)课后习题9.6 (C语言代码)浏览:378 |
矩阵乘方 (C语言代码)浏览:1038 |
简单的a+b (C语言代码)浏览:542 |
2004年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码)浏览:324 |