import java.util.Date; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int year=sc.nextInt(); int month=sc.nextInt(); int day=sc.nextInt(); Date date=new Date(year+"/"+month+"/"+day); int a=date.getDay(); if(a==0) a=7; System.out.println(a); } }
0.0分
0 人评分
输出正反三角形 (C语言代码)浏览:794 |
printf基础练习2 (C语言代码)浏览:646 |
The 3n + 1 problem (C语言代码)浏览:554 |
C语言程序设计教程(第三版)课后习题3.7 (C语言代码)浏览:569 |
C二级辅导-统计字符 (C语言代码)浏览:481 |
理财计划 (C语言代码)浏览:468 |
C语言程序设计教程(第三版)课后习题1.6 (C语言代码)浏览:673 |
2003年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码)浏览:615 |
C语言程序设计教程(第三版)课后习题10.1 (C++代码)浏览:503 |
1202题解浏览:630 |