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 |
'algorithm ' 카테고리의 다른 글
dovelet - 블럭 색칠하기/paintblock (0) | 2016.07.08 |
---|---|
dovelet - 퓨즈/fuse (0) | 2016.07.08 |
dovelet - 인공지능 시계/koi_watch (0) | 2016.07.07 |
dovelet - 세자리수 곱셈/three (0) | 2016.07.07 |
dovelet - 초 변환/sec (0) | 2016.07.07 |