c#include <bits/stdc++.h> using namespace std; int main(){ cin.tie(NULL); cout.tie(NULL); ios_base::sync_with_stdio(false); int Ur, Tr, Uo, To; cin >> Ur >> Tr >> Uo >> To; cout << Ur * 56 + Tr * 24 + Uo * 14 + To * 6 << "\n"; return 0; }```
#include <bits/stdc++.h> using namespace std; int main(){ cin.tie(NULL); cout.tie(NULL); ios_base::sync_with_stdio(false); int Ur, Tr, Uo, To; cin >> Ur >> Tr >> Uo >> To; cout << Ur * 56 + Tr * 24 + Uo * 14 + To * 6 << "\n"; return 0; }```