Skip to content

Instantly share code, notes, and snippets.

@Rockbet
Created August 21, 2019 13:11
Show Gist options
  • Save Rockbet/7373aa873f064e23e9e2e002963d808e to your computer and use it in GitHub Desktop.
Save Rockbet/7373aa873f064e23e9e2e002963d808e to your computer and use it in GitHub Desktop.
// 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