結果

問題 No.1256 連続整数列
ユーザー uni_pythonuni_python
提出日時 2020-10-18 15:47:49
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 439 bytes
コンパイル時間 295 ms
コンパイル使用メモリ 87,124 KB
実行使用メモリ 75,728 KB
最終ジャッジ日時 2023-09-28 11:28:01
合計ジャッジ時間 3,554 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
71,336 KB
testcase_01 AC 64 ms
71,544 KB
testcase_02 WA -
testcase_03 AC 64 ms
71,156 KB
testcase_04 AC 68 ms
71,440 KB
testcase_05 AC 64 ms
71,544 KB
testcase_06 AC 76 ms
71,344 KB
testcase_07 AC 79 ms
71,384 KB
testcase_08 AC 79 ms
71,368 KB
testcase_09 AC 98 ms
75,340 KB
testcase_10 AC 64 ms
71,560 KB
testcase_11 AC 63 ms
71,024 KB
testcase_12 AC 63 ms
71,160 KB
testcase_13 AC 63 ms
71,416 KB
testcase_14 AC 63 ms
71,244 KB
testcase_15 AC 65 ms
71,484 KB
testcase_16 AC 65 ms
71,148 KB
testcase_17 AC 67 ms
71,204 KB
testcase_18 AC 66 ms
71,256 KB
testcase_19 AC 67 ms
71,344 KB
testcase_20 AC 65 ms
71,328 KB
testcase_21 AC 65 ms
71,288 KB
testcase_22 AC 65 ms
71,192 KB
testcase_23 AC 65 ms
71,048 KB
testcase_24 AC 64 ms
71,196 KB
testcase_25 AC 65 ms
71,468 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=sys.stdin.readline
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

def main():
    mod=10**9+7
    A=I()
    
    flag=0
    M=10**6
    
    rem=6
    for d in range(3,M):
        if (A-rem)%d==0:
            flag=1
            break
        rem+=(d+1)
        
    if flag==1:
        print("YES")
    else:
        print("NO")
        



main()
0