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 |
Re:为什么WA呢?大家帮指点一下!In Reply To:Re:为什么WA呢?大家帮指点一下! Posted by:wrong123 at 2006-01-11 17:30:21 > 计算总的天数时不要 + 1; 最后输出tz对应的哪一天,取模后再 + 1即可 > > sum = year*365+mon*20+day; //Haab日历对应总天数 > printf("%d %s %d\n",1+sum%13,tz[sum%20],sum/260); 我怎么感觉先加1,和后加1效果是一样的阿? Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator