結果

問題 No.1256 連続整数列
ユーザー donutholedonuthole
提出日時 2020-10-16 22:37:39
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 840 bytes
コンパイル時間 80 ms
コンパイル使用メモリ 11,004 KB
実行使用メモリ 11,060 KB
最終ジャッジ日時 2023-09-28 07:00:47
合計ジャッジ時間 1,910 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
10,800 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 38 ms
11,060 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 35 ms
11,012 KB
testcase_07 AC 35 ms
10,988 KB
testcase_08 AC 33 ms
10,808 KB
testcase_09 AC 34 ms
10,992 KB
testcase_10 AC 34 ms
10,812 KB
testcase_11 AC 34 ms
10,936 KB
testcase_12 AC 34 ms
10,872 KB
testcase_13 AC 36 ms
10,788 KB
testcase_14 AC 34 ms
10,948 KB
testcase_15 AC 35 ms
10,932 KB
testcase_16 AC 35 ms
10,868 KB
testcase_17 AC 34 ms
10,752 KB
testcase_18 AC 34 ms
10,876 KB
testcase_19 AC 34 ms
10,984 KB
testcase_20 AC 35 ms
10,928 KB
testcase_21 AC 34 ms
10,980 KB
testcase_22 AC 34 ms
10,888 KB
testcase_23 AC 34 ms
10,984 KB
testcase_24 AC 35 ms
10,876 KB
testcase_25 AC 35 ms
10,992 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import typing
import sys

# import re
import math
import collections
# import decimal
import bisect
import itertools
import fractions
# import functools
import copy
import heapq
import decimal
# import statistics
import queue
# import numpy as np

# sys.setrecursionlimit(10000001)
INF = 10 ** 20
MOD = 10 ** 9 + 7
# MOD = 998244353


def ni(): return int(sys.stdin.buffer.readline())
def ns(): return map(int, sys.stdin.buffer.readline().split())
def na(): return list(map(int, sys.stdin.buffer.readline().split()))


# ===CODE===

def main():
    a = ni()

    flg = False
    for i in range(3, int(math.sqrt(a))+1, 2):
        if a % i == 0:
            flg = True

    for i in range(4, int(math.sqrt(a))+1, 2):
        if a % i == i//2:
            flg = True

    print("YES" if flg else "NO")


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