Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdio>
- #include <iostream>
- using namespace std;
- int a[2];
- int main() {
- cin >> a[0] >> a[1];
- for (int i = 0; i <= 9999; i++) {
- if (i == a[i % 2]) {
- puts("yes");
- return 0;
- }
- }
- puts("no");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement