結果

問題 No.3059 tan
ユーザー guriceringuricerin
提出日時 2020-04-02 18:33:14
言語 C++17
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 1,321 bytes
コンパイル時間 2,009 ms
コンパイル使用メモリ 198,724 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-11 00:44:34
合計ジャッジ時間 2,489 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 AC 1 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

#define rep(i, a, b) for (int i = (a); i < (int)(b); i++)
#define rrep(i, a, b) for (int i = (a); i >= (int)(b); i--)
#define all(x) (x).begin(), (x).end()
using i32 = int32_t;
using i64 = int64_t;
using f32 = float;
using f64 = double;
using P = pair<int, int>;

template <class T>
bool chmin(T& a, T b) {
    if (a > b) {
        a = b;
        return true;
    } else {
        return false;
    }
}
template <class T>
bool chmax(T& a, T b) {
    if (a < b) {
        a = b;
        return true;
    } else {
        return false;
    }
}

template <class T>
void dump_vec(const vector<T>& v) {
    auto len = v.size();
    rep(i, 0, len) {
        cout << v[i] << (i == (int)len - 1 ? "\n" : " ");
    }
}

struct FastIO {
    FastIO() {
        cin.tie(0);
        ios::sync_with_stdio(false);
        cout << fixed << setprecision(20);
    }
} FASTIO;

//---------------------------------------------------------------------------------------------------

//---------------------------------------------------------------------------------------------------

signed main() {
    int t;
    cin >> t;
    rep(i, 0, t) {
        int x;
        cin >> x;
        if (x % 45 == 0) {
            cout << "Y\n";
        } else {
            cout << "N\n";
        }
    }
}
0