結果

問題 No.1256 連続整数列
ユーザー 👑 tamatotamato
提出日時 2020-10-16 21:26:48
言語 PyPy3
(7.3.15)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 688 bytes
コンパイル時間 391 ms
コンパイル使用メモリ 87,812 KB
実行使用メモリ 75,828 KB
最終ジャッジ日時 2023-09-28 06:51:14
合計ジャッジ時間 3,144 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
71,612 KB
testcase_01 WA -
testcase_02 AC 64 ms
75,508 KB
testcase_03 AC 64 ms
75,780 KB
testcase_04 AC 62 ms
71,784 KB
testcase_05 WA -
testcase_06 AC 63 ms
75,732 KB
testcase_07 AC 66 ms
75,828 KB
testcase_08 AC 66 ms
75,708 KB
testcase_09 AC 64 ms
71,880 KB
testcase_10 AC 64 ms
75,520 KB
testcase_11 AC 68 ms
75,708 KB
testcase_12 AC 68 ms
75,708 KB
testcase_13 AC 64 ms
75,820 KB
testcase_14 AC 63 ms
75,804 KB
testcase_15 AC 64 ms
75,780 KB
testcase_16 AC 66 ms
75,508 KB
testcase_17 AC 66 ms
75,696 KB
testcase_18 AC 65 ms
75,676 KB
testcase_19 AC 67 ms
75,596 KB
testcase_20 AC 65 ms
75,752 KB
testcase_21 AC 63 ms
75,656 KB
testcase_22 AC 63 ms
75,400 KB
testcase_23 AC 61 ms
75,508 KB
testcase_24 AC 62 ms
71,404 KB
testcase_25 AC 63 ms
75,628 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 1000000007
eps = 10**-9


def main():
    import sys
    input = sys.stdin.readline

    def PrimeDecomposition(N):
        ret = {}
        n = int(N ** 0.5)
        for d in range(2, n + 1):
            while N % d == 0:
                if d not in ret:
                    ret[d] = 1
                else:
                    ret[d] += 1
                N //= d
            if N == 1:
                break
        if N != 1:
            ret[N] = 1
        return ret

    a = int(input())
    P = PrimeDecomposition(a)
    if a == 1:
        print("NO")
    elif len(P) == 1 and 2 in P:
        print("NO")
    else:
        print("YES")


if __name__ == '__main__':
    main()
0