Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <fstream>
- #define LL long long int
- using namespace std;
- int main()
- {
- LL x,y,z;
- ifstream f("coada2.in");
- f>>x>>y>>z;
- f.close();
- ofstream g("coada2.out");
- if(x>=y||x>=z)
- g<<-1;
- else
- g<<y+z-x;
- g.close();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement