結果

問題 No.1256 連続整数列
ユーザー ygd.ygd.
提出日時 2020-10-16 21:26:55
言語 PyPy3
(7.3.15)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 137 bytes
コンパイル時間 530 ms
コンパイル使用メモリ 87,280 KB
実行使用メモリ 75,916 KB
最終ジャッジ日時 2023-09-28 08:15:37
合計ジャッジ時間 3,169 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,436 KB
testcase_01 AC 70 ms
71,152 KB
testcase_02 WA -
testcase_03 AC 69 ms
71,444 KB
testcase_04 AC 72 ms
71,324 KB
testcase_05 AC 71 ms
71,320 KB
testcase_06 AC 70 ms
71,452 KB
testcase_07 AC 71 ms
71,160 KB
testcase_08 AC 70 ms
71,568 KB
testcase_09 AC 75 ms
75,916 KB
testcase_10 AC 70 ms
71,376 KB
testcase_11 AC 70 ms
71,436 KB
testcase_12 AC 71 ms
71,384 KB
testcase_13 AC 70 ms
71,336 KB
testcase_14 AC 70 ms
71,304 KB
testcase_15 AC 69 ms
71,384 KB
testcase_16 AC 72 ms
71,152 KB
testcase_17 AC 70 ms
71,404 KB
testcase_18 AC 71 ms
71,384 KB
testcase_19 AC 70 ms
71,348 KB
testcase_20 AC 71 ms
71,372 KB
testcase_21 AC 69 ms
71,684 KB
testcase_22 AC 69 ms
71,300 KB
testcase_23 AC 71 ms
71,516 KB
testcase_24 AC 70 ms
71,388 KB
testcase_25 AC 69 ms
71,640 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
MAX = pow(10,5)
for i in range(3,MAX):
  nokori = N - i*(i-1)//2
  if nokori%i == 0:
    print("YES");exit()
print("NO")
0