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 |
让人orz的题目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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator