(F) Стоимость покупки

mail@pastecode.io avatar
unknown
c_cpp
7 months ago
356 B
0
Indexable
Never
#include <iostream>

using namespace std;

int main() {
    int cntSnickers, cntTwix, cntMars;
    cin >> cntSnickers;
    cin >> cntTwix;
    cin >> cntMars;
    int priceTwix = 230;
    int priceSnickers = 330;
    int priceMars = 180;
    cout << cntSnickers * priceSnickers + cntTwix * priceTwix + cntMars * priceMars;
    return 0;
}