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 人评分
C语言程序设计教程(第三版)课后习题6.10 (C语言代码)浏览:749 |
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:578 |
Tom数 (C语言代码)浏览:492 |
数组与指针的问题浏览:716 |
简单的a+b (C语言代码)浏览:945 |
2004年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码)浏览:324 |
字符串的输入输出处理 (C语言代码)浏览:985 |
C二级辅导-等差数列 (C语言代码)浏览:810 |
C语言程序设计教程(第三版)课后习题10.5 (C语言代码)浏览:547 |
2003年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码)浏览:809 |