結果

問題 No.638 Sum of "not power of 2"
ユーザー RyutoRyuto
提出日時 2018-01-30 15:15:01
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 192 bytes
コンパイル時間 499 ms
コンパイル使用メモリ 86,852 KB
実行使用メモリ 71,636 KB
最終ジャッジ日時 2023-08-28 18:22:13
合計ジャッジ時間 1,888 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,356 KB
testcase_01 AC 66 ms
71,584 KB
testcase_02 AC 67 ms
71,392 KB
testcase_03 AC 67 ms
71,468 KB
testcase_04 AC 66 ms
71,300 KB
testcase_05 AC 67 ms
71,368 KB
testcase_06 AC 67 ms
71,476 KB
testcase_07 AC 66 ms
71,412 KB
testcase_08 AC 67 ms
71,316 KB
testcase_09 WA -
testcase_10 AC 68 ms
71,292 KB
testcase_11 AC 68 ms
71,112 KB
testcase_12 AC 67 ms
71,636 KB
testcase_13 AC 68 ms
71,412 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

n = int(input())

for i in range(1, n//2+1):
    if math.frexp(i)[0] == 0.5:
        continue
    elif math.frexp(n-i)[0] != 0.5:
        print(i, n-i)
        exit()
print('-1')
0