結果
| 問題 |
No.237 作図可能性
|
| コンテスト | |
| ユーザー |
matsu7874
|
| 提出日時 | 2015-10-03 18:25:28 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 36 ms / 2,000 ms |
| コード長 | 301 bytes |
| コンパイル時間 | 212 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-07-19 19:25:02 |
| 合計ジャッジ時間 | 2,258 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 28 |
ソースコード
import itertools
A = int(input())
F = [3, 5, 17, 257, 65537]
cnt = 0
for X in itertools.product([True, False], repeat=5):
f = 1
for i in range(5):
if X[i]:
f *= F[i]
m = 0
if f == 1:
m = 2
while 2**m * f <= A:
cnt += 1
m += 1
print(cnt)
matsu7874