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 count=0; for (int month = 1; month <=12; month++) { Date d=new Date (year+"/"+month+"/13"); int sum=d.getDay(); if(sum==5)count++; } System.out.println(count); } }
0.0分
1 人评分
WU-printf基础练习2 (C++代码)浏览:2007 |
数组与指针的问题浏览:718 |
2005年春浙江省计算机等级考试二级C 编程题(2) (C语言代码)浏览:575 |
Hello, world! (C语言代码)浏览:824 |
字符串比较 (C语言代码)浏览:685 |
C语言程序设计教程(第三版)课后习题7.4 (C语言代码)浏览:450 |
C二级辅导-统计字符 (C语言代码)浏览:647 |
筛排处理 (C语言代码)浏览:787 |
盐水的故事 (C语言代码)浏览:1529 |
C语言程序设计教程(第三版)课后习题8.7 (C语言代码)浏览:807 |