Skip to content

Instantly share code, notes, and snippets.

@luciocf
Created August 20, 2019 00:45
Show Gist options
  • Save luciocf/5e5c7ebaaf7b9f5ffeef632c5df10590 to your computer and use it in GitHub Desktop.
Save luciocf/5e5c7ebaaf7b9f5ffeef632c5df10590 to your computer and use it in GitHub Desktop.
Comentário Noic OBI 2019 - Fase 1 - Programação Nível 1
// Comentário Noic OBI 2019 - Fase 1 - Programação Nível 1
// Idade de Dona Mônica
#include <bits/stdc++.h>
using namespace std;
int main(void)
{
int m, a, b;
cin >> m >> a >> b;
int c = m-a-b;
// maximo dentre a, b, e c
cout << max(a, max(b, c)) << "\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment