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 |
Re:if(p>=m) l=c+n;if(p<m) l=n-m+p; p>=m的时候c不就是p-m吗?为什么就会wa呢?In Reply To:if(p>=m) l=c+n;if(p<m) l=n-m+p; p>=m的时候c不就是p-m吗?为什么就会wa呢? Posted by:alpc25 at 2006-04-10 18:53:49 想得太复杂了吧,其实关系很简单,算出顾客付出的钱pm,算出收到的假钱fm,可以算出老板收到的rm。老板一共损失了是cost+pay=bcm,所以老板损失了bcm-rm。 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator