| ||||||||||
| 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 | |||||||||
这题题目没说清楚!!!按题义应该这么做才对!//How much did the businessman lose
#include <iostream>
using namespace std;
int main()
{
int N , M , P , C;
int result[10];
while(!(N==0 && M==0 && P==0 && C==0))
{
cin>>N>>M>>P>>C;
if(N==0 && M==0 && P==0 && C==0)
break;
cout<<(-(M-P-N))<<endl;
}
}
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator