結果
| 問題 | No.237 作図可能性 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-07-05 22:46:01 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
AC
|
| 実行時間 | 64 ms / 2,000 ms |
| + 363µs | |
| コード長 | 400 bytes |
| 記録 | |
| コンパイル時間 | 66 ms |
| コンパイル使用メモリ | 80,512 KB |
| 実行使用メモリ | 82,688 KB |
| 最終ジャッジ日時 | 2026-07-17 17:07:12 |
| 合計ジャッジ時間 | 3,779 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 28 |
ソースコード
import bisect, itertools as it
F = [3, 5, 17, 257, 65537]
N = len(F)
A = int(raw_input())
enable = set([])
for i in xrange(30):
for multi in it.product([0, 1], repeat = N):
v = 2 ** i
for j, bit in enumerate(multi):
if bit:
v *= F[j]
if v > 2:
enable.add(v)
enable = sorted(list(enable))
print bisect.bisect(enable, A)