結果
| 問題 | No.237 作図可能性 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-10-24 15:37:45 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 132 ms / 2,000 ms |
| コード長 | 260 bytes |
| 記録 | |
| コンパイル時間 | 144 ms |
| コンパイル使用メモリ | 77,784 KB |
| 最終ジャッジ日時 | 2025-12-03 22:21:22 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 28 |
ソースコード
from itertools import combinations
F = [3,5,17,257,65537]
N = input()
ans = 0
for m in xrange(30):
for i in xrange(6):
for comb in combinations(F, i):
if 3<= reduce(lambda a, b:a*b, comb, 2**m) <= N:
ans += 1
print ans