Have a Chinese meaning.
Note Holly the month and the number of days are rolled together = =
To output the total number of groups, Pit cry
#include <cstring>#include<cstdio>#include<algorithm>#include<map>#include<string>#include<iostream>using namespaceStd;map<string,int>F;Const intN = A;Charstr[n][Ten] = {"Imix","ik","Akbal","kan","Chicchan", "Cimi","Manik","Lamat","Muluk","OK", "Chuen","EB","Ben","IX","Mem", "CIB","Caban","Eznab","Canac","Ahau"};voidinit () {f["Pop"] =1; f["No"] =2; f["Zip"] =3; f["Zotz"] =4; f["Tzec"] =5; f["XUL"] =6; f["Yoxkin"] =7; f["Mol"] =8; f["Chen"] =9; f["Yax"] =Ten; f["Zac"] = One; f["CEH"] = A; f["mac"] = -; f["Kankin"] = -; f["Muan"] = the; f["Pax"] = -; f["Koyab"] = -; f["Cumhu"] = -; f["Uayet"] = +;}intMain () {init (); intTC, I, N, day, year, Sumday, month; stringSt; Chartemp; scanf ("%d", &TC); printf ("%d\n", TC); while(tc--) {cin>> Day >> temp >> St >>Year ; //Haab to sumSumday = Year *365; Month=F[st]; Sumday+ = (month-1)* -+ Day;//printf ("%d\n", sumday); //sum to TzolkinYear = Sumday/260; //Sumday%= 260;Day = sumday% - ; Month= sumday% -+1; printf ("%d%s%d\n", month, Str[day], year); } return 0;}
View Code
POJ 1008 Maya Calendar Water Simulation