//简单的模拟
#include <iostream>
using namespace std;
int main()
{
char h[19][10]={"pop","no","zip","zotz","tzec","xul","yoxkin","mol","chen","yax","zac","ceh","mac","kankin","muan","pax","koyab","cumhu","uayet"};
char t[20][10]={"imix","ik","akbal","kan","chicchan","cimi","manik","lamat","muluk","ok","chuen","eb","ben","ix","mem","cib","caban","eznab","canac","ahau"};
int k,i,sum,y,d;
cin>>k;
cout<<k<<endl;
char df,s[10];
while(k--)
{
sum=0;
cin>>d>>df>>s>>y;
for(i=0;i<19;i++)
{
if(strcmp(s,h[i])==0) break;
}
sum+=i*20+y*365+d;
cout<<sum%13+1<<" "<<t[sum%20]<<" "<<sum/260<<endl;
}
return 0;
}
我hdu 的号叫做阿迪达斯
poj 叫1759432774a
QQ号是1759432774 愿意加我,我们讨论
有兴趣可以看看我