結果
問題 | No.237 作図可能性 |
ユーザー |
|
提出日時 | 2015-12-05 09:05:20 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 34 ms / 2,000 ms |
コード長 | 377 bytes |
コンパイル時間 | 301 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-09-14 14:22:17 |
合計ジャッジ時間 | 2,391 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 28 |
ソースコード
n = int(input()) fel = [3, 5, 17, 257, 65537] res = 0 i = 0 while 2 ** i <= n: num = 2 ** i for j in range(32): t = 1 while t <= 31: if j & t > 0: idx = str(bin(t))[::-1].index("1") num *= fel[idx] t <<= 1 if 3 <= num <= n: res += 1 num = 2 ** i i += 1 print(res)