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

Re:为什么WA呢?大家帮指点一下!

Posted by xiaoxiaodi at 2006-01-11 21:36:41 on Problem 1008
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:
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