Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- #include <vector>
- #include <queue>
- #include <algorithm>
- #include <string>
- #include <stack>
- #include <set>
- #include <map>
- #define pii pair <int,int>
- using namespace std;
- using ll = long long;
- void cv(vector <int> &v){
- for (auto x: v) cout<<x<<' ';
- cout<<"\n\n";
- }
- int main()
- {
- /*ios::sync_with_stdio(0);
- cin.tie(0);
- cout.tie(0);*/
- int x,y;
- cin>>x>>y;
- if (abs(x+y) % 2 != 0){
- cout<<-1;
- exit(0);
- }
- if (x == y && x > 0){
- cout<<0;
- exit(0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement