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

害怕精度出问题,没敢用power或者log函数

Posted by Ruby931031 at 2012-09-14 17:18:32 on Problem 1730
动手写了一个分解整数求最大公因数的程序,结果一直TLE……
然后加了一句if (x==(1<<31))	{ printf("31\n"); continue;}就AC了……
这数据太贱了……不仅有负数还有INT_MIN!!~
被坑了TAT~

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