QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#361779#8508. DiviDueloucup-team112#AC ✓1ms3848kbC++2312.0kb2024-03-23 13:14:272024-03-23 13:14:27

Judging History

你现在查看的是最新测评结果

  • [2024-03-23 13:14:27]
  • 评测
  • 测评结果:AC
  • 用时:1ms
  • 内存:3848kb
  • [2024-03-23 13:14:27]
  • 提交

answer

// #pragma GCC target("avx2")
// #pragma GCC optimize("O3")
// #pragma GCC optimize("unroll-loops")
#include <bits/stdc++.h>
using namespace std;
// #define INTERACTIVE

namespace templates {
// type
using ll  = long long;
using ull = unsigned long long;
using Pii = pair<int, int>;
using Pil = pair<int, ll>;
using Pli = pair<ll, int>;
using Pll = pair<ll, ll>;
template <class T>
using pq = priority_queue<T>;
template <class T>
using qp = priority_queue<T, vector<T>, greater<T>>;
// clang-format off
#define vec(T, A, ...) vector<T> A(__VA_ARGS__);
#define vvec(T, A, h, ...) vector<vector<T>> A(h, vector<T>(__VA_ARGS__));
#define vvvec(T, A, h1, h2, ...) vector<vector<vector<T>>> A(h1, vector<vector<T>>(h2, vector<T>(__VA_ARGS__)));
// clang-format on

// for loop
#define fori1(a) for (ll _ = 0; _ < (a); _++)
#define fori2(i, a) for (ll i = 0; i < (a); i++)
#define fori3(i, a, b) for (ll i = (a); i < (b); i++)
#define fori4(i, a, b, c) for (ll i = (a); ((c) > 0 || i > (b)) && ((c) < 0 || i < (b)); i += (c))
#define overload4(a, b, c, d, e, ...) e
#define fori(...) overload4(__VA_ARGS__, fori4, fori3, fori2, fori1)(__VA_ARGS__)

// declare and input
// clang-format off
#define INT(...) int __VA_ARGS__; inp(__VA_ARGS__);
#define LL(...) ll __VA_ARGS__; inp(__VA_ARGS__);
#define STRING(...) string __VA_ARGS__; inp(__VA_ARGS__);
#define CHAR(...) char __VA_ARGS__; inp(__VA_ARGS__);
#define DOUBLE(...) double __VA_ARGS__; STRING(str___); __VA_ARGS__ = stod(str___);
#define VEC(T, A, n) vector<T> A(n); inp(A);
#define VVEC(T, A, n, m) vector<vector<T>> A(n, vector<T>(m)); inp(A);
// clang-format on

// const value
const ll MOD1   = 1000000007;
const ll MOD9   = 998244353;
const double PI = acos(-1);

// other macro
#if !defined(RIN__LOCAL) && !defined(INTERACTIVE)
#define endl "\n"
#endif
#define spa ' '
#define len(A) ll(A.size())
#define all(A) begin(A), end(A)

// function
vector<char> stoc(string &S) {
    int n = S.size();
    vector<char> ret(n);
    for (int i = 0; i < n; i++) ret[i] = S[i];
    return ret;
}
string ctos(vector<char> &S) {
    int n      = S.size();
    string ret = "";
    for (int i = 0; i < n; i++) ret += S[i];
    return ret;
}

template <class T>
auto min(const T &a) {
    return *min_element(all(a));
}
template <class T>
auto max(const T &a) {
    return *max_element(all(a));
}
template <class T, class S>
auto clamp(T &a, const S &l, const S &r) {
    return (a > r ? r : a < l ? l : a);
}
template <class T, class S>
inline bool chmax(T &a, const S &b) {
    return (a < b ? a = b, 1 : 0);
}
template <class T, class S>
inline bool chmin(T &a, const S &b) {
    return (a > b ? a = b, 1 : 0);
}
template <class T, class S>
inline bool chclamp(T &a, const S &l, const S &r) {
    auto b = clamp(a, l, r);
    return (a != b ? a = b, 1 : 0);
}

template <typename T>
T sum(vector<T> &A) {
    T tot = 0;
    for (auto a : A) tot += a;
    return tot;
}

template <typename T>
vector<T> compression(vector<T> X) {
    sort(all(X));
    X.erase(unique(all(X)), X.end());
    return X;
}

// input and output
namespace io {
// __int128_t
std::ostream &operator<<(std::ostream &dest, __int128_t value) {
    std::ostream::sentry s(dest);
    if (s) {
        __uint128_t tmp = value < 0 ? -value : value;
        char buffer[128];
        char *d = std::end(buffer);
        do {
            --d;
            *d = "0123456789"[tmp % 10];
            tmp /= 10;
        } while (tmp != 0);
        if (value < 0) {
            --d;
            *d = '-';
        }
        int len = std::end(buffer) - d;
        if (dest.rdbuf()->sputn(d, len) != len) {
            dest.setstate(std::ios_base::badbit);
        }
    }
    return dest;
}

// vector<T>
template <typename T>
istream &operator>>(istream &is, vector<T> &A) {
    for (auto &a : A) is >> a;
    return is;
}
template <typename T>
ostream &operator<<(ostream &os, vector<T> &A) {
    for (size_t i = 0; i < A.size(); i++) {
        os << A[i];
        if (i != A.size() - 1) os << ' ';
    }
    return os;
}

// vector<vector<T>>
template <typename T>
istream &operator>>(istream &is, vector<vector<T>> &A) {
    for (auto &a : A) is >> a;
    return is;
}
template <typename T>
ostream &operator<<(ostream &os, vector<vector<T>> &A) {
    for (size_t i = 0; i < A.size(); i++) {
        os << A[i];
        if (i != A.size() - 1) os << endl;
    }
    return os;
}

// pair<S, T>
template <typename S, typename T>
istream &operator>>(istream &is, pair<S, T> &A) {
    is >> A.first >> A.second;
    return is;
}
template <typename S, typename T>
ostream &operator<<(ostream &os, pair<S, T> &A) {
    os << A.first << ' ' << A.second;
    return os;
}

// vector<pair<S, T>>
template <typename S, typename T>
istream &operator>>(istream &is, vector<pair<S, T>> &A) {
    for (size_t i = 0; i < A.size(); i++) {
        is >> A[i];
    }
    return is;
}
template <typename S, typename T>
ostream &operator<<(ostream &os, vector<pair<S, T>> &A) {
    for (size_t i = 0; i < A.size(); i++) {
        os << A[i];
        if (i != A.size() - 1) os << endl;
    }
    return os;
}

// tuple
template <typename T, size_t N>
struct TuplePrint {
    static ostream &print(ostream &os, const T &t) {
        TuplePrint<T, N - 1>::print(os, t);
        os << ' ' << get<N - 1>(t);
        return os;
    }
};
template <typename T>
struct TuplePrint<T, 1> {
    static ostream &print(ostream &os, const T &t) {
        os << get<0>(t);
        return os;
    }
};
template <typename... Args>
ostream &operator<<(ostream &os, const tuple<Args...> &t) {
    TuplePrint<decltype(t), sizeof...(Args)>::print(os, t);
    return os;
}

// io functions
void FLUSH() {
    cout << flush;
}

void print() {
    cout << endl;
}
template <class Head, class... Tail>
void print(Head &&head, Tail &&...tail) {
    cout << head;
    if (sizeof...(Tail)) cout << spa;
    print(std::forward<Tail>(tail)...);
}

template <typename T, typename S>
void prisep(vector<T> &A, S sep) {
    int n = A.size();
    for (int i = 0; i < n; i++) {
        cout << A[i];
        if (i != n - 1) cout << sep;
    }
    cout << endl;
}
template <typename T, typename S>
void priend(T A, S end) {
    cout << A << end;
}
template <typename T>
void prispa(T A) {
    priend(A, spa);
}
template <typename T, typename S>
bool printif(bool f, T A, S B) {
    if (f)
        print(A);
    else
        print(B);
    return f;
}

template <class... T>
void inp(T &...a) {
    (cin >> ... >> a);
}

} // namespace io
using namespace io;

// read graph
vector<vector<int>> read_edges(int n, int m, bool direct = false, int indexed = 1) {
    vector<vector<int>> edges(n, vector<int>());
    for (int i = 0; i < m; i++) {
        INT(u, v);
        u -= indexed;
        v -= indexed;
        edges[u].push_back(v);
        if (!direct) edges[v].push_back(u);
    }
    return edges;
}
vector<vector<int>> read_tree(int n, int indexed = 1) {
    return read_edges(n, n - 1, false, indexed);
}

template <typename T = long long>
vector<vector<pair<int, T>>> read_wedges(int n, int m, bool direct = false, int indexed = 1) {
    vector<vector<pair<int, T>>> edges(n, vector<pair<int, T>>());
    for (int i = 0; i < m; i++) {
        INT(u, v);
        T w;
        inp(w);
        u -= indexed;
        v -= indexed;
        edges[u].push_back({v, w});
        if (!direct) edges[v].push_back({u, w});
    }
    return edges;
}
template <typename T = long long>
vector<vector<pair<int, T>>> read_wtree(int n, int indexed = 1) {
    return read_wedges<T>(n, n - 1, false, indexed);
}

// yes / no
namespace yesno {

// yes
inline bool yes(bool f = true) {
    cout << (f ? "yes" : "no") << endl;
    return f;
}
inline bool Yes(bool f = true) {
    cout << (f ? "Yes" : "No") << endl;
    return f;
}
inline bool YES(bool f = true) {
    cout << (f ? "YES" : "NO") << endl;
    return f;
}

// no
inline bool no(bool f = true) {
    cout << (!f ? "yes" : "no") << endl;
    return f;
}
inline bool No(bool f = true) {
    cout << (!f ? "Yes" : "No") << endl;
    return f;
}
inline bool NO(bool f = true) {
    cout << (!f ? "YES" : "NO") << endl;
    return f;
}

// possible
inline bool possible(bool f = true) {
    cout << (f ? "possible" : "impossible") << endl;
    return f;
}
inline bool Possible(bool f = true) {
    cout << (f ? "Possible" : "Impossible") << endl;
    return f;
}
inline bool POSSIBLE(bool f = true) {
    cout << (f ? "POSSIBLE" : "IMPOSSIBLE") << endl;
    return f;
}

// impossible
inline bool impossible(bool f = true) {
    cout << (!f ? "possible" : "impossible") << endl;
    return f;
}
inline bool Impossible(bool f = true) {
    cout << (!f ? "Possible" : "Impossible") << endl;
    return f;
}
inline bool IMPOSSIBLE(bool f = true) {
    cout << (!f ? "POSSIBLE" : "IMPOSSIBLE") << endl;
    return f;
}

// Alice Bob
inline bool Alice(bool f = true) {
    cout << (f ? "Alice" : "Bob") << endl;
    return f;
}
inline bool Bob(bool f = true) {
    cout << (f ? "Bob" : "Alice") << endl;
    return f;
}

// Takahashi Aoki
inline bool Takahashi(bool f = true) {
    cout << (f ? "Takahashi" : "Aoki") << endl;
    return f;
}
inline bool Aoki(bool f = true) {
    cout << (f ? "Aoki" : "Takahashi") << endl;
    return f;
}

} // namespace yesno
using namespace yesno;

} // namespace templates
using namespace templates;

template <typename T, typename S>
T modpow(T a, S b, T MOD) {
    T ret = 1;
    while (b > 0) {
        if (b & 1) {
            ret *= a;
            ret %= MOD;
        }
        a *= a;
        a %= MOD;
        b >>= 1;
    }
    return ret;
}

bool isPrime(long long n) {
    if (n <= 1)
        return false;
    else if (n == 2)
        return true;
    else if (n % 2 == 0)
        return false;

    long long A[7] = {2, 325, 9375, 28178, 450775, 9780504, 1795265022};
    long long s    = 0;
    long long d    = n - 1;
    while (d % 2 == 0) {
        d /= 2;
        s++;
    }

    for (auto a : A) {
        if (a % n == 0) return true;
        long long x = modpow<__int128_t>(a, d, n);
        if (x != 1) {
            bool ng = true;
            for (int i = 0; i < s; i++) {
                if (x == n - 1) {
                    ng = false;
                    break;
                };
                x = __int128_t(x) * x % n;
            }
            if (ng) return false;
        }
    }
    return true;
}
long long pollard(long long N) {
    if (N % 2 == 0) return 2;
    if (isPrime(N)) return N;

    long long step = 0;
    auto f         = [&](long long x) -> long long { return (__int128_t(x) * x + step) % N; };
    while (true) {
        ++step;
        long long x = step, y = f(x);
        while (true) {
            long long p = std::gcd(y - x + N, N);
            if (p == 0 || p == N) break;
            if (p != 1) return p;
            x = f(x);
            y = f(f(y));
        }
    }
}

std::vector<long long> primefact(long long N) {
    if (N == 1) return {};
    long long p = pollard(N);
    if (p == N) return {p};
    std::vector<long long> left  = primefact(p);
    std::vector<long long> right = primefact(N / p);
    left.insert(left.end(), right.begin(), right.end());
    std::sort(left.begin(), left.end());
    return left;
}

void solve() {
    LL(n);
    ll sq = sqrtl(n);
    while (sq * sq < n) sq++;
    while (sq * sq > n) sq--;
    if (sq * sq == n) {
        print("N");
        return;
    }
    auto P = primefact(n);
    int c  = len(compression(P));
    if (c == 1) {
        print("Y");
    } else if (c == 2 and len(P) == 2) {
        print("Y");
    } else {
        print("N");
    }
}

int main() {
#ifndef INTERACTIVE
    cin.tie(0)->sync_with_stdio(0);
#endif
    // cout << fixed << setprecision(12);
    int t;
    t = 1;
    // cin >> t;
    while (t--) solve();
    return 0;
}

詳細信息

Test #1:

score: 100
Accepted
time: 1ms
memory: 3592kb

input:

10

output:

Y

result:

ok "Y"

Test #2:

score: 0
Accepted
time: 0ms
memory: 3832kb

input:

9

output:

N

result:

ok "N"

Test #3:

score: 0
Accepted
time: 1ms
memory: 3576kb

input:

1

output:

N

result:

ok "N"

Test #4:

score: 0
Accepted
time: 1ms
memory: 3568kb

input:

549755813888

output:

Y

result:

ok "Y"

Test #5:

score: 0
Accepted
time: 0ms
memory: 3580kb

input:

274877906944

output:

N

result:

ok "N"

Test #6:

score: 0
Accepted
time: 0ms
memory: 3544kb

input:

847288609443

output:

Y

result:

ok "Y"

Test #7:

score: 0
Accepted
time: 1ms
memory: 3532kb

input:

282429536481

output:

N

result:

ok "N"

Test #8:

score: 0
Accepted
time: 0ms
memory: 3596kb

input:

137858491849

output:

N

result:

ok "N"

Test #9:

score: 0
Accepted
time: 0ms
memory: 3640kb

input:

10604499373

output:

Y

result:

ok "Y"

Test #10:

score: 0
Accepted
time: 0ms
memory: 3540kb

input:

506623120463

output:

Y

result:

ok "Y"

Test #11:

score: 0
Accepted
time: 0ms
memory: 3832kb

input:

10779215329

output:

N

result:

ok "N"

Test #12:

score: 0
Accepted
time: 0ms
memory: 3540kb

input:

41910794561

output:

Y

result:

ok "Y"

Test #13:

score: 0
Accepted
time: 0ms
memory: 3604kb

input:

64574155417

output:

Y

result:

ok "Y"

Test #14:

score: 0
Accepted
time: 0ms
memory: 3496kb

input:

75644818241

output:

Y

result:

ok "Y"

Test #15:

score: 0
Accepted
time: 0ms
memory: 3552kb

input:

124029899611

output:

Y

result:

ok "Y"

Test #16:

score: 0
Accepted
time: 0ms
memory: 3552kb

input:

134306640043

output:

Y

result:

ok "Y"

Test #17:

score: 0
Accepted
time: 0ms
memory: 3500kb

input:

146462570411

output:

Y

result:

ok "Y"

Test #18:

score: 0
Accepted
time: 0ms
memory: 3624kb

input:

222287988673

output:

Y

result:

ok "Y"

Test #19:

score: 0
Accepted
time: 0ms
memory: 3500kb

input:

263345887171

output:

Y

result:

ok "Y"

Test #20:

score: 0
Accepted
time: 1ms
memory: 3592kb

input:

717451682557

output:

Y

result:

ok "Y"

Test #21:

score: 0
Accepted
time: 0ms
memory: 3500kb

input:

825365364157

output:

Y

result:

ok "Y"

Test #22:

score: 0
Accepted
time: 0ms
memory: 3640kb

input:

870298842859

output:

Y

result:

ok "Y"

Test #23:

score: 0
Accepted
time: 0ms
memory: 3548kb

input:

887915259331

output:

Y

result:

ok "Y"

Test #24:

score: 0
Accepted
time: 1ms
memory: 3608kb

input:

967108197509

output:

Y

result:

ok "Y"

Test #25:

score: 0
Accepted
time: 1ms
memory: 3596kb

input:

990661375799

output:

Y

result:

ok "Y"

Test #26:

score: 0
Accepted
time: 0ms
memory: 3588kb

input:

999999999989

output:

Y

result:

ok "Y"

Test #27:

score: 0
Accepted
time: 0ms
memory: 3504kb

input:

999962000357

output:

Y

result:

ok "Y"

Test #28:

score: 0
Accepted
time: 1ms
memory: 3596kb

input:

999474022513

output:

Y

result:

ok "Y"

Test #29:

score: 0
Accepted
time: 1ms
memory: 3600kb

input:

999052035451

output:

Y

result:

ok "Y"

Test #30:

score: 0
Accepted
time: 1ms
memory: 3596kb

input:

999470040641

output:

Y

result:

ok "Y"

Test #31:

score: 0
Accepted
time: 0ms
memory: 3644kb

input:

998712349711

output:

Y

result:

ok "Y"

Test #32:

score: 0
Accepted
time: 0ms
memory: 3608kb

input:

998768376647

output:

Y

result:

ok "Y"

Test #33:

score: 0
Accepted
time: 1ms
memory: 3536kb

input:

998884311283

output:

Y

result:

ok "Y"

Test #34:

score: 0
Accepted
time: 1ms
memory: 3556kb

input:

998794254709

output:

Y

result:

ok "Y"

Test #35:

score: 0
Accepted
time: 1ms
memory: 3560kb

input:

998830303021

output:

Y

result:

ok "Y"

Test #36:

score: 0
Accepted
time: 1ms
memory: 3552kb

input:

999638023157

output:

Y

result:

ok "Y"

Test #37:

score: 0
Accepted
time: 0ms
memory: 3576kb

input:

998978227997

output:

Y

result:

ok "Y"

Test #38:

score: 0
Accepted
time: 0ms
memory: 3588kb

input:

999108034891

output:

Y

result:

ok "Y"

Test #39:

score: 0
Accepted
time: 1ms
memory: 3496kb

input:

998922289621

output:

Y

result:

ok "Y"

Test #40:

score: 0
Accepted
time: 0ms
memory: 3604kb

input:

999172169371

output:

Y

result:

ok "Y"

Test #41:

score: 0
Accepted
time: 0ms
memory: 3580kb

input:

999218015981

output:

Y

result:

ok "Y"

Test #42:

score: 0
Accepted
time: 0ms
memory: 3844kb

input:

981700934653

output:

N

result:

ok "N"

Test #43:

score: 0
Accepted
time: 0ms
memory: 3588kb

input:

942804229201

output:

N

result:

ok "N"

Test #44:

score: 0
Accepted
time: 0ms
memory: 3796kb

input:

822635014967

output:

N

result:

ok "N"

Test #45:

score: 0
Accepted
time: 0ms
memory: 3552kb

input:

954312321917

output:

N

result:

ok "N"

Test #46:

score: 0
Accepted
time: 0ms
memory: 3556kb

input:

965687001953

output:

N

result:

ok "N"

Test #47:

score: 0
Accepted
time: 0ms
memory: 3536kb

input:

907803030577

output:

N

result:

ok "N"

Test #48:

score: 0
Accepted
time: 0ms
memory: 3792kb

input:

993916557163

output:

N

result:

ok "N"

Test #49:

score: 0
Accepted
time: 0ms
memory: 3588kb

input:

844029771131

output:

N

result:

ok "N"

Test #50:

score: 0
Accepted
time: 0ms
memory: 3600kb

input:

862969367597

output:

N

result:

ok "N"

Test #51:

score: 0
Accepted
time: 1ms
memory: 3600kb

input:

768706748179

output:

N

result:

ok "N"

Test #52:

score: 0
Accepted
time: 0ms
memory: 3776kb

input:

744412255649

output:

N

result:

ok "N"

Test #53:

score: 0
Accepted
time: 0ms
memory: 3600kb

input:

877760921347

output:

N

result:

ok "N"

Test #54:

score: 0
Accepted
time: 0ms
memory: 3552kb

input:

779321766481

output:

N

result:

ok "N"

Test #55:

score: 0
Accepted
time: 0ms
memory: 3796kb

input:

786676948027

output:

N

result:

ok "N"

Test #56:

score: 0
Accepted
time: 0ms
memory: 3792kb

input:

775686765629

output:

N

result:

ok "N"

Test #57:

score: 0
Accepted
time: 0ms
memory: 3788kb

input:

971230541

output:

N

result:

ok "N"

Test #58:

score: 0
Accepted
time: 1ms
memory: 3552kb

input:

2385673

output:

N

result:

ok "N"

Test #59:

score: 0
Accepted
time: 0ms
memory: 3548kb

input:

52468711

output:

N

result:

ok "N"

Test #60:

score: 0
Accepted
time: 0ms
memory: 3604kb

input:

20358337

output:

N

result:

ok "N"

Test #61:

score: 0
Accepted
time: 0ms
memory: 3548kb

input:

9186689

output:

N

result:

ok "N"

Test #62:

score: 0
Accepted
time: 1ms
memory: 3768kb

input:

106251

output:

N

result:

ok "N"

Test #63:

score: 0
Accepted
time: 0ms
memory: 3772kb

input:

2859061

output:

N

result:

ok "N"

Test #64:

score: 0
Accepted
time: 1ms
memory: 3564kb

input:

51455519

output:

N

result:

ok "N"

Test #65:

score: 0
Accepted
time: 0ms
memory: 3556kb

input:

68063771

output:

N

result:

ok "N"

Test #66:

score: 0
Accepted
time: 1ms
memory: 3504kb

input:

44480353

output:

N

result:

ok "N"

Test #67:

score: 0
Accepted
time: 0ms
memory: 3588kb

input:

445130407

output:

N

result:

ok "N"

Test #68:

score: 0
Accepted
time: 1ms
memory: 3572kb

input:

54924301

output:

N

result:

ok "N"

Test #69:

score: 0
Accepted
time: 0ms
memory: 3844kb

input:

251377811

output:

N

result:

ok "N"

Test #70:

score: 0
Accepted
time: 0ms
memory: 3572kb

input:

11583287

output:

N

result:

ok "N"

Test #71:

score: 0
Accepted
time: 0ms
memory: 3500kb

input:

164689969

output:

N

result:

ok "N"

Test #72:

score: 0
Accepted
time: 0ms
memory: 3792kb

input:

220388553874

output:

N

result:

ok "N"

Test #73:

score: 0
Accepted
time: 0ms
memory: 3556kb

input:

337917710393

output:

N

result:

ok "N"

Test #74:

score: 0
Accepted
time: 0ms
memory: 3796kb

input:

484109724475

output:

N

result:

ok "N"

Test #75:

score: 0
Accepted
time: 0ms
memory: 3600kb

input:

494253368469

output:

N

result:

ok "N"

Test #76:

score: 0
Accepted
time: 0ms
memory: 3788kb

input:

790636814905

output:

N

result:

ok "N"

Test #77:

score: 0
Accepted
time: 0ms
memory: 3844kb

input:

593466711078

output:

N

result:

ok "N"

Test #78:

score: 0
Accepted
time: 0ms
memory: 3552kb

input:

701257784810

output:

N

result:

ok "N"

Test #79:

score: 0
Accepted
time: 0ms
memory: 3556kb

input:

821468484315

output:

N

result:

ok "N"

Test #80:

score: 0
Accepted
time: 0ms
memory: 3576kb

input:

321582188478

output:

N

result:

ok "N"

Test #81:

score: 0
Accepted
time: 1ms
memory: 3588kb

input:

623403649385

output:

N

result:

ok "N"

Test #82:

score: 0
Accepted
time: 0ms
memory: 3600kb

input:

172509105650

output:

N

result:

ok "N"

Test #83:

score: 0
Accepted
time: 0ms
memory: 3536kb

input:

579709456395

output:

N

result:

ok "N"

Test #84:

score: 0
Accepted
time: 0ms
memory: 3832kb

input:

703541153630

output:

N

result:

ok "N"

Test #85:

score: 0
Accepted
time: 0ms
memory: 3556kb

input:

371717528455

output:

N

result:

ok "N"

Test #86:

score: 0
Accepted
time: 0ms
memory: 3580kb

input:

925436174850

output:

N

result:

ok "N"

Test #87:

score: 0
Accepted
time: 1ms
memory: 3608kb

input:

441602590298

output:

N

result:

ok "N"

Test #88:

score: 0
Accepted
time: 0ms
memory: 3592kb

input:

663345923451

output:

N

result:

ok "N"

Test #89:

score: 0
Accepted
time: 1ms
memory: 3796kb

input:

662812798173

output:

N

result:

ok "N"

Test #90:

score: 0
Accepted
time: 0ms
memory: 3796kb

input:

662615302233

output:

N

result:

ok "N"

Test #91:

score: 0
Accepted
time: 1ms
memory: 3592kb

input:

663436223391

output:

N

result:

ok "N"

Test #92:

score: 0
Accepted
time: 0ms
memory: 3536kb

input:

662248872237

output:

N

result:

ok "N"

Test #93:

score: 0
Accepted
time: 0ms
memory: 3548kb

input:

662516706867

output:

N

result:

ok "N"

Test #94:

score: 0
Accepted
time: 0ms
memory: 3500kb

input:

864077614394

output:

N

result:

ok "N"

Test #95:

score: 0
Accepted
time: 0ms
memory: 3640kb

input:

977802486226

output:

N

result:

ok "N"

Test #96:

score: 0
Accepted
time: 0ms
memory: 3796kb

input:

647426786602

output:

N

result:

ok "N"

Test #97:

score: 0
Accepted
time: 1ms
memory: 3500kb

input:

901679277046

output:

N

result:

ok "N"

Test #98:

score: 0
Accepted
time: 0ms
memory: 3552kb

input:

642523777682

output:

N

result:

ok "N"

Test #99:

score: 0
Accepted
time: 0ms
memory: 3596kb

input:

871506220334

output:

N

result:

ok "N"

Test #100:

score: 0
Accepted
time: 1ms
memory: 3828kb

input:

950098378534

output:

N

result:

ok "N"

Test #101:

score: 0
Accepted
time: 0ms
memory: 3772kb

input:

660409283986

output:

N

result:

ok "N"

Test #102:

score: 0
Accepted
time: 0ms
memory: 3596kb

input:

819550638458

output:

N

result:

ok "N"

Test #103:

score: 0
Accepted
time: 0ms
memory: 3556kb

input:

846693913942

output:

N

result:

ok "N"

Test #104:

score: 0
Accepted
time: 1ms
memory: 3572kb

input:

630683996246

output:

N

result:

ok "N"

Test #105:

score: 0
Accepted
time: 0ms
memory: 3536kb

input:

698348891974

output:

N

result:

ok "N"

Test #106:

score: 0
Accepted
time: 1ms
memory: 3828kb

input:

794129725534

output:

N

result:

ok "N"

Test #107:

score: 0
Accepted
time: 0ms
memory: 3496kb

input:

731864249762

output:

N

result:

ok "N"

Test #108:

score: 0
Accepted
time: 0ms
memory: 3552kb

input:

758461160882

output:

N

result:

ok "N"

Test #109:

score: 0
Accepted
time: 0ms
memory: 3588kb

input:

200560490130

output:

N

result:

ok "N"

Test #110:

score: 0
Accepted
time: 0ms
memory: 3596kb

input:

132843110400

output:

N

result:

ok "N"

Test #111:

score: 0
Accepted
time: 1ms
memory: 3644kb

input:

700131600000

output:

N

result:

ok "N"

Test #112:

score: 0
Accepted
time: 0ms
memory: 3600kb

input:

755827200000

output:

N

result:

ok "N"

Test #113:

score: 0
Accepted
time: 0ms
memory: 3500kb

input:

3368254499

output:

Y

result:

ok "Y"

Test #114:

score: 0
Accepted
time: 0ms
memory: 3592kb

input:

338171833063

output:

Y

result:

ok "Y"

Test #115:

score: 0
Accepted
time: 0ms
memory: 3640kb

input:

182187833309

output:

Y

result:

ok "Y"

Test #116:

score: 0
Accepted
time: 0ms
memory: 3848kb

input:

207790265467

output:

Y

result:

ok "Y"

Test #117:

score: 0
Accepted
time: 0ms
memory: 3832kb

input:

101847563

output:

Y

result:

ok "Y"

Test #118:

score: 0
Accepted
time: 0ms
memory: 3496kb

input:

32187778741

output:

Y

result:

ok "Y"

Test #119:

score: 0
Accepted
time: 0ms
memory: 3840kb

input:

50284268371

output:

Y

result:

ok "Y"

Test #120:

score: 0
Accepted
time: 0ms
memory: 3552kb

input:

237176659

output:

Y

result:

ok "Y"

Test #121:

score: 0
Accepted
time: 1ms
memory: 3576kb

input:

6570725617

output:

Y

result:

ok "Y"

Test #122:

score: 0
Accepted
time: 0ms
memory: 3576kb

input:

11194326053

output:

Y

result:

ok "Y"

Test #123:

score: 0
Accepted
time: 0ms
memory: 3552kb

input:

288804781

output:

Y

result:

ok "Y"

Test #124:

score: 0
Accepted
time: 0ms
memory: 3524kb

input:

683099533943

output:

Y

result:

ok "Y"

Test #125:

score: 0
Accepted
time: 0ms
memory: 3832kb

input:

77909194511

output:

Y

result:

ok "Y"

Test #126:

score: 0
Accepted
time: 0ms
memory: 3496kb

input:

633839779

output:

Y

result:

ok "Y"

Test #127:

score: 0
Accepted
time: 0ms
memory: 3596kb

input:

49714249733

output:

Y

result:

ok "Y"

Test #128:

score: 0
Accepted
time: 1ms
memory: 3772kb

input:

60781478521

output:

N

result:

ok "N"

Test #129:

score: 0
Accepted
time: 0ms
memory: 3536kb

input:

6340459129

output:

N

result:

ok "N"

Test #130:

score: 0
Accepted
time: 0ms
memory: 3500kb

input:

582784140409

output:

N

result:

ok "N"

Test #131:

score: 0
Accepted
time: 0ms
memory: 3556kb

input:

106704795649

output:

N

result:

ok "N"

Test #132:

score: 0
Accepted
time: 0ms
memory: 3592kb

input:

364295537761

output:

N

result:

ok "N"

Test #133:

score: 0
Accepted
time: 1ms
memory: 3500kb

input:

48194738089

output:

N

result:

ok "N"

Test #134:

score: 0
Accepted
time: 0ms
memory: 3536kb

input:

534067178401

output:

N

result:

ok "N"

Test #135:

score: 0
Accepted
time: 1ms
memory: 3600kb

input:

266490315529

output:

N

result:

ok "N"

Test #136:

score: 0
Accepted
time: 1ms
memory: 3556kb

input:

41293897681

output:

N

result:

ok "N"

Test #137:

score: 0
Accepted
time: 0ms
memory: 3604kb

input:

405579196201

output:

N

result:

ok "N"

Test #138:

score: 0
Accepted
time: 0ms
memory: 3592kb

input:

7659225289

output:

N

result:

ok "N"

Test #139:

score: 0
Accepted
time: 0ms
memory: 3588kb

input:

650447089009

output:

N

result:

ok "N"

Test #140:

score: 0
Accepted
time: 0ms
memory: 3596kb

input:

856407728929

output:

N

result:

ok "N"

Test #141:

score: 0
Accepted
time: 0ms
memory: 3572kb

input:

536053872649

output:

N

result:

ok "N"

Test #142:

score: 0
Accepted
time: 1ms
memory: 3580kb

input:

48390760441

output:

N

result:

ok "N"

Extra Test:

score: 0
Extra Test Passed