結果

問題 No.237 作図可能性
ユーザー brthyyjp
提出日時 2022-03-10 00:18:03
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 47 ms / 2,000 ms
コード長 293 bytes
コンパイル時間 337 ms
コンパイル使用メモリ 82,124 KB
実行使用メモリ 62,408 KB
最終ジャッジ日時 2024-09-14 01:43:21
合計ジャッジ時間 2,917 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 28
権限があれば一括ダウンロードができます

ソースコード

diff #

a = int(input())
P = [1]
while P[-1]*2 <= 10**9:
    P.append(P[-1]*2)

F = [3, 5, 17, 257, 65537]
ans = 0
for p in P:
    for i in range(1<<5):
        x = p
        for j in range(5):
            if (i>>j)&1:
                x *= F[j]
        if 3 <= x <= a:
            ans += 1
print(ans)
0