結果

問題 No.237 作図可能性
ユーザー rlangevinrlangevin
提出日時 2023-01-14 13:39:34
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 67 ms / 2,000 ms
コード長 358 bytes
コンパイル時間 870 ms
コンパイル使用メモリ 87,128 KB
実行使用メモリ 71,588 KB
最終ジャッジ日時 2023-08-26 20:00:16
合計ジャッジ時間 3,981 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
71,260 KB
testcase_01 AC 62 ms
71,572 KB
testcase_02 AC 62 ms
71,280 KB
testcase_03 AC 62 ms
71,212 KB
testcase_04 AC 64 ms
71,460 KB
testcase_05 AC 64 ms
71,388 KB
testcase_06 AC 63 ms
71,396 KB
testcase_07 AC 66 ms
71,328 KB
testcase_08 AC 65 ms
71,388 KB
testcase_09 AC 64 ms
71,588 KB
testcase_10 AC 63 ms
71,440 KB
testcase_11 AC 66 ms
71,360 KB
testcase_12 AC 62 ms
71,380 KB
testcase_13 AC 63 ms
71,440 KB
testcase_14 AC 63 ms
71,444 KB
testcase_15 AC 65 ms
71,064 KB
testcase_16 AC 64 ms
71,316 KB
testcase_17 AC 65 ms
71,256 KB
testcase_18 AC 62 ms
71,580 KB
testcase_19 AC 66 ms
71,068 KB
testcase_20 AC 66 ms
71,276 KB
testcase_21 AC 64 ms
71,268 KB
testcase_22 AC 64 ms
71,132 KB
testcase_23 AC 65 ms
71,224 KB
testcase_24 AC 63 ms
71,208 KB
testcase_25 AC 64 ms
71,444 KB
testcase_26 AC 64 ms
71,396 KB
testcase_27 AC 64 ms
71,396 KB
testcase_28 AC 63 ms
71,264 KB
testcase_29 AC 67 ms
71,368 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A = int(input())
L = [3, 5, 17, 257, 65537]
S = set()
for i in range(1 << 5):
    n = 1
    for j in range(5):
        if (i >> j) & 1:
            n *= L[j]
    S.add(n)
    
ans = set()
now = 1
for i in range(60):
    if now > A:
        break        
    for s in S:
        if 3 <= now * s <= A:
            ans.add(now * s)
    now *= 2
print(len(ans)) 
0