Advertisement
a53

coada2

a53
Jan 20th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include <fstream>
  2. #define LL long long int
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. LL x,y,z;
  8. ifstream f("coada2.in");
  9. f>>x>>y>>z;
  10. f.close();
  11. ofstream g("coada2.out");
  12. if(x>=y||x>=z)
  13. g<<-1;
  14. else
  15. g<<y+z-x;
  16. g.close();
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement