#54331: c++詳解(附註解)


leon0526@smail.hc.edu.tw (703-3-范子昂Leon)


#include <iostream>
using namespace std;

int main() {
    int M, D;
    cin >> M >> D;

    // 計算 S
    int S = (M * 2 + D) % 3;

    // 根據 S 輸出運勢
    if (S == 0) {
        cout << "普通" << endl;
    } else if (S == 1) {
        cout << "吉" << endl;
    } else {
        cout << "大吉" << endl;
    }

    return 0;
}