結果
| 問題 |
No.1256 連続整数列
|
| コンテスト | |
| ユーザー |
neetoto
|
| 提出日時 | 2020-10-31 01:08:45 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 217 bytes |
| コンパイル時間 | 81 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-07-22 04:11:06 |
| 合計ジャッジ時間 | 1,688 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 26 |
ソースコード
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