よじろめ覚書

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

ABC144B - 81

問題:B - 81

#include <iostream>
using namespace std;

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

int main(void) {
    int n;
    bool flg = false;

    cin.tie(0);
    ios::sync_with_stdio(false);
    cin >> n;
    FOR(i, 1, 9 + 1) {
        FOR(j, 1, 9 + 1) {
            if (i * j == n) {
                flg = true;
            }
        }
    }

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