結果

問題 No.1256 連続整数列
ユーザー rei60rei60
提出日時 2020-10-25 17:33:05
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 517 bytes
コンパイル時間 1,192 ms
コンパイル使用メモリ 87,036 KB
実行使用メモリ 75,916 KB
最終ジャッジ日時 2023-09-29 02:07:23
合計ジャッジ時間 3,876 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,560 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 82 ms
75,256 KB
testcase_07 AC 76 ms
75,328 KB
testcase_08 AC 77 ms
75,256 KB
testcase_09 AC 75 ms
71,320 KB
testcase_10 AC 77 ms
75,452 KB
testcase_11 AC 77 ms
75,460 KB
testcase_12 AC 77 ms
75,460 KB
testcase_13 AC 78 ms
75,476 KB
testcase_14 AC 77 ms
75,380 KB
testcase_15 AC 82 ms
75,916 KB
testcase_16 AC 78 ms
75,508 KB
testcase_17 AC 76 ms
75,324 KB
testcase_18 AC 77 ms
75,384 KB
testcase_19 AC 76 ms
75,552 KB
testcase_20 AC 76 ms
75,256 KB
testcase_21 AC 79 ms
75,456 KB
testcase_22 AC 78 ms
75,652 KB
testcase_23 AC 79 ms
75,512 KB
testcase_24 AC 77 ms
75,568 KB
testcase_25 AC 78 ms
75,560 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-

A = int(input())

def make_div(n):
    lower_divisors , upper_divisors = [], []
    i = 1
    while i*i <= n:
        if n % i == 0:
            lower_divisors.append(i)
            if i != n // i:
                upper_divisors.append(n//i)
        i += 1
    return lower_divisors + upper_divisors[::-1]

div = make_div(A)[1::]


for d in div:
    temp = (2*A//d - d + 1)//2
    if temp-0.01 < (2*A/d - d + 1)/2 < temp+0.01 and temp > 0:
        print("YES")
        quit()
print("NO")
    
0