結果

問題 No.237 作図可能性
ユーザー maspy
提出日時 2020-01-07 01:56:31
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 32 ms / 2,000 ms
コード長 323 bytes
コンパイル時間 75 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-11-23 00:30:52
合計ジャッジ時間 2,137 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 28
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

A = int(read())

P = [3,5,17,257,65537]

cand = [1]
for p in P:
    cand += [x * p for x in cand]

cand = [x << y for x in cand for y in range(30)]

cand = [x for x in cand if 3 <= x <= A]

print(len(cand))
0