結果

問題 No.237 作図可能性
ユーザー brthyyjpbrthyyjp
提出日時 2022-03-10 00:18:03
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 77 ms / 2,000 ms
コード長 293 bytes
コンパイル時間 310 ms
コンパイル使用メモリ 87,188 KB
実行使用メモリ 76,916 KB
最終ジャッジ日時 2023-10-12 01:54:09
合計ジャッジ時間 3,922 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
76,448 KB
testcase_01 AC 73 ms
76,692 KB
testcase_02 AC 74 ms
76,660 KB
testcase_03 AC 72 ms
76,748 KB
testcase_04 AC 77 ms
76,848 KB
testcase_05 AC 72 ms
76,644 KB
testcase_06 AC 74 ms
76,728 KB
testcase_07 AC 75 ms
76,752 KB
testcase_08 AC 75 ms
76,700 KB
testcase_09 AC 74 ms
76,852 KB
testcase_10 AC 75 ms
76,596 KB
testcase_11 AC 75 ms
76,612 KB
testcase_12 AC 74 ms
76,716 KB
testcase_13 AC 74 ms
76,716 KB
testcase_14 AC 76 ms
76,852 KB
testcase_15 AC 72 ms
76,452 KB
testcase_16 AC 74 ms
76,600 KB
testcase_17 AC 75 ms
76,660 KB
testcase_18 AC 75 ms
76,656 KB
testcase_19 AC 75 ms
76,916 KB
testcase_20 AC 75 ms
76,772 KB
testcase_21 AC 75 ms
76,796 KB
testcase_22 AC 76 ms
76,748 KB
testcase_23 AC 74 ms
76,716 KB
testcase_24 AC 74 ms
76,696 KB
testcase_25 AC 73 ms
76,636 KB
testcase_26 AC 74 ms
76,452 KB
testcase_27 AC 76 ms
76,892 KB
testcase_28 AC 74 ms
76,576 KB
testcase_29 AC 75 ms
76,660 KB
権限があれば一括ダウンロードができます

ソースコード

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