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

TLE的同学可以看看

Posted by fanofxiaofeng at 2013-11-23 21:10:54 on Problem 3508
总结了讨论区的说法。
(1)容易错的地方
输入89时
应该输出99(因为99*11=1089)
这可能是个容易错的地方

(2)
还有就是超时的问题,
可以用一个变量记录字符串长度,不要在for循环中每次用strlen(),这样很耗费时间。

说得不对的地方,请指正。我自己也是刚比1000Ms好些
Memory: 2340K		Time: 704MS
Language: G++		Result: Accepted

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