結果
| 問題 |
No.237 作図可能性
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-11-27 17:56:48 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 422 bytes |
| コンパイル時間 | 1,917 ms |
| コンパイル使用メモリ | 165,844 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-27 12:16:19 |
| 合計ジャッジ時間 | 2,199 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 28 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
const int f[] = { 3, 5, 17, 257, 65537 };
typedef long long ll;
signed main(){
int A; cin >> A;
ll ans = 0;
for( int i = 0; i < 30; ++i )
for( int j = 0; j < 1 << 5; ++j ){
ll t = 1 << i;
for( int k = 0; k < 5; ++k )
if( j >> k & 1 )
t *= f[ k ];
if( 2 < t and t <= A )
++ans;
}
cout << ans << endl;
return 0;
}