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

狂汗。。。瀑布汗。。。可恶的long long。。。

Posted by hust_ELT at 2010-07-17 20:06:44 on Problem 3277
如果a*b的结果会超出int,很可能发生悲剧
一定要把期中一个强制转换成long long
long long res = (long long)(a) * b;
或者干脆把a和b定义成long long,省事。
6个WA啊。。。。。。

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