Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

救命啊

Posted by soso188 at 2007-12-08 17:33:45 on Problem 1008
#include <iostream.h>
#include "string.h"
int main()
{int n1,n2,m1,d1,d2,p,d3,n;
char b[6],t;
char *a[19]={"pop","no", "zip", "zotz", "tzec", "xul", "yoxkin", "mol", "chen", "yax", "zac", "ceh",
"mac","kankin","muan","pax","koyab", "cumhu","uayet"};
char *c[20]={"imix", "ik", "akbal", "kan", "chicchan", "cimi", "manik", "lamat", "muluk",
"ok", "chuen", "eb", "ben", "ix", "mem", "cib", "caban", "eznab", "canac", "ahau"};
cin>>n;
while(n--)
{
cin>>d1>>t>>b>>n1;
for(int i=0;i<19;i++)
{if (strcmp(b,a[i])==0)
m1=i;}
p=m1*20+d1+365*n1;
n2=p/260;
d2=p%260%20;
d3=p%260%13+1;
cout<<d3<<endl;
cout<<c[d2]<<endl;
cout<<n2<<endl;
}
	return 0;
}为什么不能通过???

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator