Pizzaria

Problem Link

Solution by augusto100 pts

Code / Notes

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

int main() {
    int G, P;
    cin >> G >> P;

    int total = G * 8 + P * 4;
    int amigos = total - 2;
    cout << amigos << endl;
}

Last updated 1 month, 4 weeks ago


« Back to problem