よじろめ覚書

私の理解度重視のソースコードです。

ABC109A - ABC333

問題:A - ABC333

#include <iostream>
using namespace std;

#define FOR(i, a, b) for (int i = (a); i < (b); ++i)

int main(void) {
    int a, b;
    bool flg = false;

    cin.tie(0);
    ios::sync_with_stdio(false);
    cin >> a >> b;
    FOR(c, 1, 3 + 1) {
        if ((a * b * c) % 2) {
            flg = true;
        }
    }

    cout << (flg? "Yes" : "No") << "\n";
    return 0;
}