結果

問題 No.1256 連続整数列
ユーザー nasubi24nasubi24
提出日時 2020-10-16 21:25:47
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 226 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 10,612 KB
実行使用メモリ 8,108 KB
最終ジャッジ日時 2023-09-28 06:50:37
合計ジャッジ時間 1,523 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 15 ms
8,004 KB
testcase_04 WA -
testcase_05 AC 13 ms
8,072 KB
testcase_06 AC 14 ms
7,876 KB
testcase_07 AC 14 ms
7,908 KB
testcase_08 WA -
testcase_09 AC 14 ms
8,052 KB
testcase_10 WA -
testcase_11 AC 14 ms
8,008 KB
testcase_12 AC 14 ms
7,872 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 16 ms
7,884 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 16 ms
7,888 KB
testcase_23 AC 14 ms
8,016 KB
testcase_24 AC 15 ms
7,872 KB
testcase_25 AC 16 ms
7,920 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
a=int(input())
ans=0
for i in range(3,int(math.sqrt(a))+1):
    if a%i==0 and (a//i)-a//2-1>=0:
        ans=1
        break
if a%2==0 and (a//2)//2-1>=0:
    ans=1
if ans==1:
    print("YES")
else:
    print("NO")
0