Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
救命啊#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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator