結果
問題 | No.1256 連続整数列 |
ユーザー | hir355 |
提出日時 | 2020-10-16 22:05:04 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 382 bytes |
コンパイル時間 | 316 ms |
コンパイル使用メモリ | 87,276 KB |
実行使用メモリ | 76,400 KB |
最終ジャッジ日時 | 2023-09-28 06:59:12 |
合計ジャッジ時間 | 2,918 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | AC | 65 ms
75,636 KB |
testcase_04 | WA | - |
testcase_05 | AC | 62 ms
71,840 KB |
testcase_06 | AC | 66 ms
75,752 KB |
testcase_07 | AC | 63 ms
75,868 KB |
testcase_08 | WA | - |
testcase_09 | AC | 61 ms
71,436 KB |
testcase_10 | WA | - |
testcase_11 | AC | 63 ms
75,816 KB |
testcase_12 | AC | 66 ms
75,772 KB |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | AC | 63 ms
75,732 KB |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | AC | 64 ms
75,780 KB |
testcase_23 | AC | 64 ms
75,740 KB |
testcase_24 | AC | 63 ms
75,784 KB |
testcase_25 | AC | 61 ms
75,636 KB |
ソースコード
def make_divisors(n): divisors = [] for i in range(1, int(n**0.5)+1): if n % i == 0: divisors.append(i) if i != n // i: divisors.append(n//i) divisors.sort() return divisors a = int(input()) for d in make_divisors(a): if d >= 3 and (a // d - d) % 2 == 1: print('YES') break else: print('NO')