結果

問題 No.8098 tan 2
ユーザー Ojoxux
提出日時 2023-03-31 21:21:57
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 553 bytes
コンパイル時間 510 ms
コンパイル使用メモリ 67,516 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-22 23:52:21
合計ジャッジ時間 1,057 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 7 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cmath>

bool isRationalTan(int angle) {
    // 有理数の角度を表す配列
    int rational_angles[] = {0, 45, 90};
    int size = sizeof(rational_angles) / sizeof(rational_angles[0]);

    for (int i = 0; i < size; ++i) {
        if (angle == rational_angles[i]) {
            return true;
        }
    }

    return false;
}

int main() {
    int I;
    std::cin >> I;

    if (isRationalTan(I)) {
        std::cout << "Yes" << std::endl;
    } else {
        std::cout << "No" << std::endl;
    }

    return 0;
}
0