結果

問題 No.8059 tan
ユーザー fine
提出日時 2020-04-01 21:32:50
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 375 bytes
コンパイル時間 1,479 ms
コンパイル使用メモリ 165,692 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-27 09:10:31
合計ジャッジ時間 1,868 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

using ll = long long;

int main() {
    cin.tie(nullptr);
    ios::sync_with_stdio(false);
    int n;
    cin >> n;
    for (int i = 0; i < n; ++i) {
        int x;
        cin >> x;
        int g = __gcd(180, x);
        int hoge = 180 / g;
        cout << ((hoge == 1 || hoge == 2) ? "Y" : "N") << "\n";
    }
    return 0;
}
0