結果
| 問題 |
No.1256 連続整数列
|
| コンテスト | |
| ユーザー |
neetoto
|
| 提出日時 | 2020-10-31 01:06:10 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 216 bytes |
| コンパイル時間 | 89 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-07-22 04:10:59 |
| 合計ジャッジ時間 | 1,726 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / 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