結果

問題 No.237 作図可能性
ユーザー akitsugu777akitsugu777
提出日時 2019-08-09 17:15:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 432 bytes
コンパイル時間 97 ms
コンパイル使用メモリ 10,876 KB
実行使用メモリ 8,372 KB
最終ジャッジ日時 2023-09-26 13:17:17
合計ジャッジ時間 1,990 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 17 ms
8,144 KB
testcase_02 AC 18 ms
8,352 KB
testcase_03 AC 18 ms
8,336 KB
testcase_04 AC 18 ms
8,132 KB
testcase_05 AC 17 ms
8,372 KB
testcase_06 AC 17 ms
8,316 KB
testcase_07 AC 17 ms
8,200 KB
testcase_08 AC 16 ms
8,224 KB
testcase_09 AC 17 ms
8,224 KB
testcase_10 AC 16 ms
8,224 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 17 ms
8,280 KB
testcase_14 AC 18 ms
8,276 KB
testcase_15 WA -
testcase_16 AC 16 ms
8,208 KB
testcase_17 AC 17 ms
8,196 KB
testcase_18 AC 17 ms
8,224 KB
testcase_19 AC 17 ms
8,356 KB
testcase_20 WA -
testcase_21 AC 17 ms
8,276 KB
testcase_22 AC 17 ms
8,204 KB
testcase_23 AC 17 ms
8,204 KB
testcase_24 WA -
testcase_25 AC 16 ms
8,348 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 17 ms
8,280 KB
testcase_29 AC 17 ms
8,332 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools

l = [3, 5, 17, 257, 65537]
l1 = [1] + l

for i in range(2, 6):
    y = list(itertools.combinations(l, i))
    for j in y:
        x = 1
        for k in j:
            x *= int(k)
        l1.append(x)

l2 = []
for i in range(30):
    l2.append(2**i)

ans = l1 + l2
for i in l1:
    for j in l2:
        ans.append(i * j)

ans = sorted(set(ans))

a = int(input())
ans = [i for i in ans if 2 < i < a]
print(len(ans))
0