結果

問題 No.638 Sum of "not power of 2"
ユーザー htkbhtkb
提出日時 2018-04-20 09:10:56
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
実行時間 -
コード長 173 bytes
コンパイル時間 93 ms
コンパイル使用メモリ 10,680 KB
実行使用メモリ 8,028 KB
最終ジャッジ日時 2023-09-09 11:56:26
合計ジャッジ時間 1,268 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,872 KB
testcase_01 AC 15 ms
7,876 KB
testcase_02 AC 15 ms
8,028 KB
testcase_03 AC 15 ms
7,808 KB
testcase_04 AC 16 ms
7,884 KB
testcase_05 AC 15 ms
8,004 KB
testcase_06 AC 15 ms
7,852 KB
testcase_07 AC 15 ms
7,888 KB
testcase_08 AC 15 ms
7,868 KB
testcase_09 WA -
testcase_10 AC 15 ms
7,884 KB
testcase_11 AC 15 ms
7,944 KB
testcase_12 AC 16 ms
7,808 KB
testcase_13 AC 16 ms
7,892 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import log2
n = int(input())
for i in range(3, n//2+1):
  if log2(i) != int(log2(i)) and log2(n-i) != int(log2(n-i)):
    print(i, n-i)
    break
else:
  print(-1)
0