Pizzaria

Problem Link

Solution by TioPatinhas100 pts

Code / Notes

#include <bits/stdc++.h>
using namespace std;

int main() {
    int G, P;
    cin >> G >> P;
    int Gt = G*8;
    int Pt = P*4;
    int ans = Gt + Pt - 2;
    cout << ans;
} 

Last updated 1 month, 4 weeks ago


« Back to problem