結果
問題 |
No.1256 連続整数列
|
ユーザー |
![]() |
提出日時 | 2020-10-19 16:43:27 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 383 bytes |
コンパイル時間 | 94 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-07-21 07:52:16 |
合計ジャッジ時間 | 1,887 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 WA * 4 |
ソースコード
def make_divisors(n): lower_divisors , upper_divisors = [], [] i = 3 while i*i <= n: if n % i == 0: lower_divisors.append(i) if i != n // i: upper_divisors.append(n//i) i += 1 return lower_divisors + upper_divisors[::-1] a = int(input()) list = make_divisors(a) if len(list) > 0: print('YES') else: print('NO')