-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathBUYPLSE.cpp
More file actions
34 lines (30 loc) · 814 Bytes
/
BUYPLSE.cpp
File metadata and controls
34 lines (30 loc) · 814 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include <bits/stdc++.h>
using namespace std;
#define incr_loop(a, b) for (int i = a; i < b; i++)
#define decr_loop(a, b) for (int i = b; i > a; i--)
typedef long long ll;
#define in(x,y,z,a) cin >> x>>y>>z>>a;
#define out(x) cout << x;
#define line cout << endl;
#define string_in(x) getline(cin, x)
#define f first
#define s second
typedef vector<int> vi;
typedef vector<char> vc;
mt19937_64 rang(chrono::high_resolution_clock::now().time_since_epoch().count());
const int mod = 1'000'000'007;
const int N = 3e5, M = N;
void solution()
{
int i, j, n, m;
int a, b, x, y;
in(a, b, x, y);
out((a * x) + (b * y));
}
int main()
{
ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
srand(chrono::high_resolution_clock::now().time_since_epoch().count());
solution();
return 0;
}