This commit is contained in:
xixu-me committed 2024-05-21 11:24:36 +08:00
1 parent 4f77adac6a
commit 4b24215279
23 files changed
+7008 -1

No files matched your search

+11
View File
@@ -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 + "日");
}
}