結果
| 問題 |
No.237 作図可能性
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-10-24 15:37:45 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 14 ms / 2,000 ms |
| コード長 | 260 bytes |
| コンパイル時間 | 93 ms |
| コンパイル使用メモリ | 6,912 KB |
| 実行使用メモリ | 6,656 KB |
| 最終ジャッジ日時 | 2024-11-24 02:43:59 |
| 合計ジャッジ時間 | 1,672 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / 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