C# ACM poj1008

玛雅历

 public static void Acm1008(int day, string mon, int year)
{
int m = ;
switch (mon)
{
case "pop":
m = ;
break;
case "no":
m = ;
break;
case "zip":
m = ;
break;
case "zotz":
m = ;
break;
case "tzec":
m = ;
break;
case "xul":
m = ;
break;
case "yoxkin":
m = ;
break;
case "mol":
m = ;
break;
case "chen":
m = ;
break;
case "yax":
m = ;
break;
case "zac":
m = ;
break;
case "ceh":
m = ;
break;
case "mac":
m = ;
break;
case "kankin":
m = ;
break;
case "muan":
m = ;
break;
case "pax":
m = ;
break;
case "koyab":
m = ;
break;
case "cumhu":
m = ;
break;
}
day += (m-) * + year * +;
int tzolkinY = day / ;
int tzolkinB = day % ;
int tzolkinDayA = ;
switch (tzolkinB)
{
case :
tzolkinDayA = ;
break;
case :
tzolkinDayA = ;
break;
case :
tzolkinDayA = ;
break;
case :
tzolkinDayA = ;
break;
case :
tzolkinDayA = ;
break;
case :
tzolkinDayA = ;
break;
case :
tzolkinDayA = ;
break;
case :
tzolkinDayA = ;
break;
case :
tzolkinDayA = ;
break;
case :
tzolkinDayA = ;
break;
case :
tzolkinDayA = ;
break;
case :
tzolkinDayA = ;
break;
case :
tzolkinDayA = ;
break;
}
int tzolkinC = day % ;
string tzolkinDayB = "";
switch (tzolkinC)
{
case : tzolkinDayB = "imix"; break;
case : tzolkinDayB = "ik"; break;
case : tzolkinDayB = "akbal"; break;
case : tzolkinDayB = "kan"; break;
case : tzolkinDayB = "chicchan"; break;
case : tzolkinDayB = "cimi"; break;
case : tzolkinDayB = "manik"; break;
case : tzolkinDayB = "lamat"; break;
case : tzolkinDayB = "muluk"; break;
case : tzolkinDayB = "ok"; break;
case : tzolkinDayB = "chuen"; break;
case : tzolkinDayB = "eb"; break;
case : tzolkinDayB = "ben"; break;
case : tzolkinDayB = "ix"; break;
case : tzolkinDayB = "mem"; break;
case : tzolkinDayB = "cib"; break;
case : tzolkinDayB = "caban"; break;
case : tzolkinDayB = "eznab"; break;
case : tzolkinDayB = "canac"; break;
case : tzolkinDayB = "ahau"; break;
}
Console.WriteLine(tzolkinDayA + " " + tzolkinDayB + " " + tzolkinY);
}
上一篇:生产者消费者问题


下一篇:瞎搞poj1008