| ||||||||||
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 |
无话可说,实际的测试数据有大量的重复数据测试数据竟然有大量重复的。 一开始输入一个数计算一次,结果超时。 后来在程序运行时先把1-14的数值都计算一次,存在数组中,每来一个数据就查一次数组直接返回结果, 最后只用了62ms Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator