結果
| 問題 | No.1256 連続整数列 |
| コンテスト | |
| ユーザー |
neetoto
|
| 提出日時 | 2020-10-31 01:08:45 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 217 bytes |
| 記録 | |
| コンパイル時間 | 541 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 15,516 KB |
| 最終ジャッジ日時 | 2026-04-03 07:22:29 |
| 合計ジャッジ時間 | 7,890 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 40 |
ソースコード
A = int(input())
i = 0
for n in range(2, A): # range(3, A)
chk = A - n * (n-1)//2
if chk < 0:
break
if chk % n == 0:
print("Yes")
i = 1
break
if i == 0:
print("No")
neetoto