2013年3月31日
摘要: 题目链接。分析:原来一天天数是这样简单。。#include <stdio.h>int month[13] = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};int is_leap(int n){ return ((n % 4 == 0 && n % 100 != 0) || (n % 400 == 0));}void pre(int n){ int y = 2013, m = 3, d = 24; while(n--){ d--; if(d == 0){ m--; ... 阅读全文
posted @ 2013-03-31 15:56 Still_Raining 阅读(185) 评论(0) 推荐(0)