結果
問題 | No.237 作図可能性 |
ユーザー |
|
提出日時 | 2019-08-09 20:55:08 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 410 bytes |
コンパイル時間 | 2,114 ms |
コンパイル使用メモリ | 192,648 KB |
最終ジャッジ日時 | 2025-01-07 11:12:18 |
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 28 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll f[] = {3,5,17,257,65537}; int a; cin>>a; int ans=0; for (int i=0;i<1<<5;i++) { ll n=1; for (int j=0;j<5;j++) { if (i&1<<j) n*=f[j]; } if (n==1) n=4; while (n<=a) { ans++; n*=2; } } cout<<ans<<endl; return 0; }