結果

問題 No.1256 連続整数列
ユーザー komkompikomkompi
提出日時 2020-10-17 19:40:53
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 341 bytes
コンパイル時間 698 ms
コンパイル使用メモリ 10,640 KB
実行使用メモリ 8,404 KB
最終ジャッジ日時 2023-09-28 08:32:25
合計ジャッジ時間 2,776 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
8,136 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 13 ms
8,224 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 16 ms
8,376 KB
testcase_07 AC 13 ms
8,252 KB
testcase_08 AC 13 ms
8,388 KB
testcase_09 AC 13 ms
7,816 KB
testcase_10 AC 13 ms
8,356 KB
testcase_11 AC 12 ms
8,252 KB
testcase_12 AC 13 ms
8,252 KB
testcase_13 AC 13 ms
8,276 KB
testcase_14 AC 13 ms
8,236 KB
testcase_15 AC 13 ms
8,252 KB
testcase_16 AC 12 ms
8,292 KB
testcase_17 AC 12 ms
8,244 KB
testcase_18 AC 12 ms
8,244 KB
testcase_19 AC 13 ms
8,292 KB
testcase_20 AC 12 ms
8,248 KB
testcase_21 AC 13 ms
8,392 KB
testcase_22 AC 12 ms
8,136 KB
testcase_23 AC 12 ms
8,404 KB
testcase_24 AC 13 ms
8,136 KB
testcase_25 AC 13 ms
8,360 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding: utf-8
# Your code here!
A=int(input())
roop=int(A**0.5)+1

judge=A%2

for i in range(3,roop):
    temp=A/i
    if i%2==0:
        if temp%1==0.5:
            #print(i)
            print("YES")
            exit()
    else:
        if temp%1==0:
            #print(i)
            print("YES")
            exit()
        
print("NO")
0