Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
266 B
1
Indexable
Never
#include <iostream>

using namespace std;

typedef long long ll;

int main(){ // DAYXICH
    freopen("DAYXICH.INP","r",stdin);
    freopen("DAYXICH.OUT","w",stdout);

    short d, r; ll n;
    cin >> d >> r >> n;
    cout << 2*d + 2*r*n << endl;
    
    return 0;
}
Leave a Comment