Created
August 20, 2019 00:45
-
-
Save luciocf/5e5c7ebaaf7b9f5ffeef632c5df10590 to your computer and use it in GitHub Desktop.
Comentário Noic OBI 2019 - Fase 1 - Programação Nível 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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