結果

問題 No.237 作図可能性
ユーザー 0w1
提出日時 2016-11-27 17:56:29
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 423 bytes
コンパイル時間 2,004 ms
コンパイル使用メモリ 165,844 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-27 12:16:01
合計ジャッジ時間 3,040 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other WA * 28
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
}
0