結果

問題 No.1256 連続整数列
ユーザー uni_pythonuni_python
提出日時 2020-10-18 15:47:49
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 439 bytes
コンパイル時間 165 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 57,344 KB
最終ジャッジ日時 2024-07-21 06:10:17
合計ジャッジ時間 2,335 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 25 WA * 1
権限があれば一括ダウンロードができます

ソースコード

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