Skip to content

Instantly share code, notes, and snippets.

@theortsac
Created August 15, 2023 23:37
Show Gist options
  • Save theortsac/58c8dc26b06f3ea0de085609c993947d to your computer and use it in GitHub Desktop.
Save theortsac/58c8dc26b06f3ea0de085609c993947d to your computer and use it in GitHub Desktop.
Resolução Pizza da OBI
#include <iostream>
using namespace std;
int n, g, m;
int main() {
cin >> n >> g >> m;
cout << max(8*g + 6*m - n, 0) << "\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment