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

让人orz的题目

Posted by gripleaf at 2011-05-08 16:55:16 on Problem 3844
ans+=((f[i])*(f[i]-1)/2);如果没有long long 的强制转换,就会WA!!
我为此疯狂的贡献了13次WA……
就因为long long 加错了地方,注意:是ans+=(((long long)f[i])*(f[i]-1)/2);


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