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语言训练-求函数值 (C语言代码)浏览:911 |
C语言程序设计教程(第三版)课后习题9.8 (C语言代码)浏览:1203 |
母牛的故事 (C语言代码)浏览:435 |
简单的a+b (C语言代码)浏览:681 |
字符串的输入输出处理 (C语言代码)浏览:924 |
【简单计算】 (C语言代码)浏览:622 |
2005年春浙江省计算机等级考试二级C 编程题(2) (C语言代码)浏览:647 |
水仙花 (C语言代码)浏览:1047 |
川哥的吩咐 (C语言代码)浏览:609 |
陶陶摘苹果2 (C语言代码)浏览:595 |