結果

問題 No.237 作図可能性
ユーザー なお
提出日時 2015-08-12 13:09:41
言語 C++11
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 406 bytes
コンパイル時間 1,298 ms
コンパイル使用メモリ 158,780 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-18 06:55:03
合計ジャッジ時間 1,935 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 28
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i, n)           for(int(i)=0;(i)<(n);++(i))

int f[]={3,5,17,257,65537};

int main(){
    int A;
    cin >> A;
    int c = 0;
    REP(i,1<<5){
        ll v = 1;
        REP(j,5)if(i&(1<<j))v *= f[j];
        while(v <= A){
            if(v > 2) c++;
            v <<= 1;
        }
    }
    cout << c << endl;
    return 0;
}
0