Update
This commit is contained in:
1 parent
4f77adac6a
commit
4b24215279
23 files changed
+7008
-1
No files matched your search
@@ -0,0 +1,11 @@
|
||||
import java.util.Scanner;
|
||||
|
||||
public class Main {
|
||||
public static void main(String[] args) {
|
||||
Scanner sc = new Scanner(System.in);
|
||||
String s = sc.next();
|
||||
String[] arr = s.split("[-]");
|
||||
int year = Integer.parseInt(arr[0]), month = Integer.parseInt(arr[1]), day = Integer.parseInt(arr[2]);
|
||||
System.out.println(year + "年" + month + "月" + day + "日");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user