結果

問題 No.1256 連続整数列
ユーザー nasubi24nasubi24
提出日時 2020-10-16 21:26:15
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 226 bytes
コンパイル時間 69 ms
コンパイル使用メモリ 10,616 KB
実行使用メモリ 8,092 KB
最終ジャッジ日時 2023-09-28 06:50:56
合計ジャッジ時間 1,457 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
7,864 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 14 ms
7,928 KB
testcase_04 WA -
testcase_05 AC 13 ms
8,008 KB
testcase_06 AC 14 ms
7,912 KB
testcase_07 AC 14 ms
8,012 KB
testcase_08 AC 13 ms
8,004 KB
testcase_09 AC 18 ms
7,868 KB
testcase_10 AC 13 ms
7,876 KB
testcase_11 AC 14 ms
7,880 KB
testcase_12 AC 14 ms
8,008 KB
testcase_13 AC 13 ms
7,880 KB
testcase_14 AC 13 ms
7,828 KB
testcase_15 AC 14 ms
7,864 KB
testcase_16 AC 14 ms
7,832 KB
testcase_17 AC 12 ms
7,952 KB
testcase_18 AC 13 ms
7,912 KB
testcase_19 AC 14 ms
8,056 KB
testcase_20 AC 13 ms
7,916 KB
testcase_21 AC 13 ms
7,884 KB
testcase_22 AC 13 ms
7,872 KB
testcase_23 AC 12 ms
7,952 KB
testcase_24 AC 13 ms
8,044 KB
testcase_25 AC 13 ms
8,048 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)-i//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