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

这题开始也让我晕了,一定要看清楚题意,他是给了卖的价格+找的钱,所以第二个案例给的钱是70+20,而不是50块钱,后面的朋友不要看错啊

Posted by fany at 2008-08-11 00:24:32 on Problem 2521 and last updated at 2008-08-11 00:26:06
推出来实际是M+C-P-C-N=M-P-N表示顾客给的真钱,减去找给他的钱,再减去物品价值就是顾客所失去的钱数   

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