結果
| 問題 |
No.237 作図可能性
|
| コンテスト | |
| ユーザー |
c-yan
|
| 提出日時 | 2021-04-03 21:34:16 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 42 ms / 2,000 ms |
| コード長 | 343 bytes |
| コンパイル時間 | 314 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-12-25 16:23:25 |
| 合計ジャッジ時間 | 2,727 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 28 |
ソースコード
from itertools import product
from functools import reduce
N = int(input())
a = [3, 5, 17, 257, 65537, 4294967297]
result = -2
for i in range(30):
for p in product([True, False], repeat=6):
if reduce(lambda x, y: x * y, (a[i] for i in range(6) if p[i]), 1) * (2 ** i) > N:
continue
result += 1
print(result)
c-yan