北大OJ第1008题

来源:百度知道 编辑:UC知道 时间:2024/07/07 23:41:51
北大OJ第1008题Maya Calendar
网址如下:
http://acm.pku.edu.cn/JudgeOnline/problem?id=1008
求一个时间为0MS的程序
谢了啊,好的话,我会追加分的啊,麻烦高手看一下

刚做的,AC了,0MS
其实这题很简单
代码如下:
#include <iostream>
#include <string>
#include <map>

using namespace std;

int main()
{
typedef map<string,int> yingShe1;
yingShe1 haabMap;
typedef map<int,string> yingShe2;
yingShe2 tzolMap;
int number=0,i=0;
int haabDay=0,haabYear=0,tzolDay=0,tzolYear=0,iHaabMonth=0,iTzolMonth=0,totalDay=0;
string haabMonth,tzolMonth;
string haab[19]={"pop","no","zip","zotz","tzec","xul","yoxkin","mol",
"chen","yax","zac","ceh","mac","kankin","muan","pax","koyab","cumhu","uayet"};
string tzol[20]={"imix","ik","akbal","kan","chicchan","cimi","manik","lamat",
&quo