algorithm

dovelet - 손해 본 금액/business

블루건 2016. 7. 8. 19:46

dovelet - 손해 본 금액/business


문제


1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <iostream>
 
using namespace std;
 
int main()
{
    int oriPrice, sellingPrice, fakeMoney, returnMoney;
    cin >> oriPrice >> sellingPrice >> fakeMoney >> returnMoney;
 
    int result = fakeMoney - (sellingPrice + returnMoney) + oriPrice + returnMoney;
    cout << result << endl;
 
    return 0;
}
cs