USACO习题:Friday the Thirteenth
摘要:
这道题难度不大,就是比较麻烦。求解所有月份13号是星期几。#include <iostream>#include <fstream>#include <string>#include <vector>using namespace std;const int MONTHS[] = {0,31,28,31,30,31,30,31,31,30,31,30,31};vector<int> ACC_MONTHS(13,0);vector<int> ACC_LEAP_MONTHS(13,0); bool is_leap_year(i 阅读全文
posted @ 2012-03-18 21:38 lzyzizi 阅读(136) 评论(0) 推荐(0) 编辑