Advertisement
Korotkodul

Лазерная пушка

Dec 14th, 2021
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3. #include <vector>
  4. #include <queue>
  5. #include <algorithm>
  6. #include <string>
  7. #include <stack>
  8. #include <set>
  9. #include <map>
  10. #define pii pair <int,int>
  11. using namespace std;
  12. using ll = long long;
  13. void cv(vector <int> &v){
  14. for (auto x: v) cout<<x<<' ';
  15. cout<<"\n\n";
  16. }
  17.  
  18. int main()
  19. {
  20. /*ios::sync_with_stdio(0);
  21. cin.tie(0);
  22. cout.tie(0);*/
  23. int x,y;
  24. cin>>x>>y;
  25. if (abs(x+y) % 2 != 0){
  26. cout<<-1;
  27. exit(0);
  28. }
  29. if (x == y && x > 0){
  30. cout<<0;
  31. exit(0);
  32. }
  33. }
  34.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement