题目:http://poj.org/problem?id=3393 不多说了,简单模拟题,因为粗心写错了两个字母,导致错了N遍,模拟还是一贯的恶心,代码实在不想优化了,写的难看了点.. #include <stdio.h> #include <string.h> ; ; ] = {, , , , , , , , , , , , }; ][]; ][][]; int main() { ; i <= ; i++) { memcpy(days[i], month, sizeof(m…
题目:http://poj.org/problem?id=3393一道题目挺长的模拟题,参考了网上大神的题解. #include <iostream> #include <cstdio> #include <cstdlib> #include <cstring> using namespace std; ]={,,,,,,,,,,,,}; ]={,,,,,,,,,,,,}; int check(int year) { ) { ==) ; else ; } e…
http://poj.org/problem?id=3393 题意 : 对于这篇长长的英语阅读,表示无语无语再无语,花了好长时间,终于读完了.题目中规定每周的周六日为假日,其他为工作日,若是一个月的第一个工作日是周一,就定义这个月为good,若是一个周的最后一个工作日是周五,就定义这个月为luck.给你一个起始年月,一个终止年月,让你求出在这中间有多少luck月有多少good月.当然了,若是一整片文章就写了这点东西那也就太废话了,所以题目中还给出了几点应该注意的: 1.在1582年以前,只要年份…
Lucky and Good Months by Gregorian Calendar Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 1619   Accepted: 539 Description Have you ever wondered why normally an year has 365 days, not 400 days? Why August have 31 days, but February ha…
Lucky and Good Months by Gregorian Calendar Time Limit: 1000MS Memory Limit: 65536K Description Have you ever wondered why normally an year has 365 days, not 400 days? Why August have 31 days, but February have only 28 days? Why there are 7 days, not…
大致题意: 科普文一篇,文章80%都是无用信息,因为都是常识,但是又不得不看,因为有20%是常人不知道的历史常识. 定义: Goog month : 该月第一个工作日为星期一的月份 Luckly month: 该月最后一个工作日为星期五的月份 问: 给定一个Gregorian Calendar格里高公历的 时间闭区间(就是包括端点的年月了) [开始年.月]~[结束年.月] 在这个时间区间内,有多少个Goog month,有多少个Luckly month 文章要点: Gregorian Calen…
http://poj.org/problem?id=3393 好大的一道模拟题,直接当阅读理解看了.下面是大神写的题意,解释的好详细. 定义: Goog month : 该月第一个工作日为星期一的月份 Luckly month: 该月最后一个工作日为星期五的月份 问: 给定一个Gregorian Calendar格里高公历的 时间闭区间(就是包括端点的年月了) [开始年.月]~[结束年.月] 在这个时间区间内,有多少个Goog month,有多少个Luckly month 文章要点: Grego…
模拟加阅读题......虽然很多事常识性的知识,但也有许多不知道的知识,关键是不读不知道那些是已经知道的那些不是,许多重要的信息零散的分布在一大坨英文里,读起来很痛苦......自己读了一遍,读的晕晕乎乎的,还是看了别人的题解. 别人博客给的题意要点: 文章要点: Gregorian Calendar格里高公历 就是现在广泛使用公历(西历),下面简称GC GC的起始日期为 1年1月1号,该日为星期六 GC平年有365天,闰年366天(2月多1天) GC有12个月,各月的天数和现在的使用的西历一致…
Maya Calendar Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 64795   Accepted: 19978 Description During his last sabbatical, professor M. A. Ya made a surprising discovery about the old Maya calendar. From an old knotted message, profes…
Wireless Network Time Limit: 10000MS   Memory Limit: 65536K Total Submissions: 16065   Accepted: 6778 Description An earthquake takes place in Southeast Asia. The ACM (Asia Cooperated Medical team) have set up a wireless network with the lap computer…