結果

問題 No.237 作図可能性
ユーザー yaoshimax
提出日時 2016-02-23 01:06:29
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 291 bytes
コンパイル時間 72 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-22 13:07:52
合計ジャッジ時間 1,303 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 15 WA * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

A=int(raw_input())
F_p=[3,5,17,257,65537]
V=[]
for i in range(1,(1<<5)+1):
    f=1
    for j in range(0,5):
        if (i&(1<<j))!=0:
            f*=F_p[j]
    V.append(f)
V.sort()
ans = 0
n = len(V)
while A>0:
    while n>0 and A<=V[n-1]:
        n=n-1
    ans+=n
    A/=2
print ans 
    

0