Created
August 21, 2019 13:11
-
-
Save Rockbet/7373aa873f064e23e9e2e002963d808e to your computer and use it in GitHub Desktop.
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 Júnior | |
// A idade de Dona Mônica | |
#include <bits/stdc++.h> | |
using namespace std; | |
int main(){ | |
int m, a, b, c; | |
cin >> m >> a >> b; | |
c = (m-a-b); | |
cout << max(max(a, b), c) << "\n"; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment