2012年7月16日

USACO section 1.1 Friday the Thirteenth

摘要: 这道题挺不好写的,题目是说给出一个年份范围,统计这个范围内星期一到星期日为 13 号的个数。/*PROG: fridayLANG: C++*/# include <cstdio>const char daytab[2][13] = { {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}, {0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}};int isLeap(int year){ return year%4 == 0 && year%100 != 0 || y 阅读全文

posted @ 2012-07-16 20:12 getgoing 阅读(160) 评论(0) 推荐(0) 编辑

导航