結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 20 ms
7,956 KB
testcase_04 WA -
testcase_05 AC 14 ms
8,064 KB
testcase_06 AC 16 ms
7,952 KB
testcase_07 AC 17 ms
7,916 KB
testcase_08 WA -
testcase_09 AC 13 ms
8,044 KB
testcase_10 WA -
testcase_11 AC 17 ms
7,892 KB
testcase_12 AC 16 ms
8,068 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 17 ms
7,896 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 20 ms
7,860 KB
testcase_23 AC 15 ms
7,908 KB
testcase_24 AC 18 ms
7,972 KB
testcase_25 AC 20 ms
7,884 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
a=int(input())
ans=0
for i in range(3,int(math.sqrt(a))+1):
    if a%i 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