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
欢迎参加IJCAI 2020麻将智能体竞赛,大奖等你拿!Welcome to IJCAI 2020 Mahjong AI competition with amazing prizes! | 北京大学《ACM/ICPC大学生程序设计竞赛训练》暑期课面向全球招生!

Re:请问这题除了int64还有陷井嘛?wa到死!

Posted by SongLijun at 2009-03-25 10:03:49 on Problem 3277
In Reply To:请问这题除了int64还有陷井嘛?wa到死! Posted by:044100324 at 2007-07-24 16:00:05
if(hei[p]!=-1) res+=(long long)((long long)mp[rr]-(long long)mp[ll])*(long long)hei[p];
这个地方中间值一定要转成long long计算,想想为什么

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