結果
問題 | No.237 作図可能性 |
ユーザー |
![]() |
提出日時 | 2015-07-05 22:39:59 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 585 bytes |
コンパイル時間 | 1,090 ms |
コンパイル使用メモリ | 158,956 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-07 23:29:15 |
合計ジャッジ時間 | 2,323 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 28 |
ソースコード
#include <bits/stdc++.h> #define FOR(i,a,b) for(int i=(a);i<(b);i++) #define REP(i,b) FOR(i,0,b) #define F first #define S second #define PB push_back #define BE(c) c.begin(),c.end() using namespace std; typedef long long LL; typedef LL ut; typedef vector<ut> VI; const ut INF=1<<30; const int SIZE=1e+6; const ut eps=1e-9; VI primes; LL fel(ut x){ return (1LL<<(1LL<<x))+1; } int main(){ LL times=0; LL n; cin >> n; times-=2; REP(i,1<<5){ LL now=1; REP(j,5) if(i&(1<<j)) now*=fel(j); while(now<=n){ times++; now*=2; } } cout << times << endl; return 0; }