結果
問題 |
No.1256 連続整数列
|
ユーザー |
|
提出日時 | 2020-10-16 21:53:44 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 295 bytes |
コンパイル時間 | 199 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 57,600 KB |
最終ジャッジ日時 | 2024-07-21 01:22:38 |
合計ジャッジ時間 | 2,157 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 21 WA * 5 |
ソースコード
def divisor(n): cd = [] i = 1 while i*i <= n: if n%i==0: cd.append(i) if i != n//i: cd.append(n//i) i += 1 return cd A = int(input()) for x in divisor(2*A): if x<3: continue y = A//x if (x-y+1)%2==0: print('YES') break else: print('NO')