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:哪位大神告诉我哪错了。。测试数据都没问题啊,那个4.uyat 259的也没问题啊啥情况In Reply To:哪位大神告诉我哪错了。。测试数据都没问题啊,那个4.uyat 259的也没问题啊啥情况 Posted by:Saleed at 2016-04-15 15:20:10 恩,没看出啥问题。 不过你这个写得确实有点看着难懂,建议你可以分开计算。 我是这么写的,感觉看起来好懂一点。 days = day; days += 20 * mon; days += 365 * year; //printf("\ttotal days: %lu.\n", days); year = days / (13 * 20); days = days % (13 * 20); mon = days % 20; day = days % 13; printf("%d %s %d\n", day + 1, Tzolkin_day[mon], year); 你看看和你的有哪里不一样了? Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator