結果

問題 No.1256 連続整数列
ユーザー roarisroaris
提出日時 2020-11-18 16:33:47
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 140 bytes
コンパイル時間 280 ms
コンパイル使用メモリ 87,260 KB
実行使用メモリ 76,044 KB
最終ジャッジ日時 2023-09-30 15:06:01
合計ジャッジ時間 3,227 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,552 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 71 ms
71,468 KB
testcase_04 AC 70 ms
71,088 KB
testcase_05 WA -
testcase_06 AC 71 ms
71,468 KB
testcase_07 AC 70 ms
71,228 KB
testcase_08 AC 71 ms
71,424 KB
testcase_09 AC 73 ms
75,832 KB
testcase_10 AC 69 ms
71,544 KB
testcase_11 AC 69 ms
71,420 KB
testcase_12 AC 69 ms
71,356 KB
testcase_13 AC 70 ms
71,356 KB
testcase_14 AC 70 ms
71,352 KB
testcase_15 AC 70 ms
71,452 KB
testcase_16 AC 69 ms
71,468 KB
testcase_17 AC 71 ms
71,560 KB
testcase_18 AC 70 ms
71,328 KB
testcase_19 AC 70 ms
71,448 KB
testcase_20 AC 70 ms
71,352 KB
testcase_21 AC 70 ms
71,552 KB
testcase_22 AC 68 ms
71,104 KB
testcase_23 AC 70 ms
71,244 KB
testcase_24 AC 71 ms
71,292 KB
testcase_25 AC 68 ms
71,468 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A = int(input())

for i in range(3, 10**5):
    if A-i*(i-1)//2>=0 and (A-i*(i-1)//2)%i==0:
        print('YES')
        exit()

print('NO')
0