pku acm 2521 超级水题啊

Written by mc on March 17, 2009 Categories: 小心有电 Tags: 

又是那个老板卖东西收假钞的故事。
一个简单的公式:老板收益=收到的钱-商品成本-假钞-找零
不多说直接贴代码:
[sourcecode language='cpp']
#include
using namespace std;
int main()
{
long n,m,p,c;
while(cin>>n)
{
cin>>m;
cin>>p;
cin>>c;
if ((n==m) && (m==p) && (p==c) && (n==0)) break;
cout< }

return 0;
}

[/sourcecode]

No Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>