結果

問題 No.638 Sum of "not power of 2"
ユーザー RyutoRyuto
提出日時 2018-01-30 15:59:43
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 74 ms / 1,000 ms
コード長 186 bytes
コンパイル時間 1,141 ms
コンパイル使用メモリ 86,740 KB
実行使用メモリ 71,380 KB
最終ジャッジ日時 2023-08-28 18:22:26
合計ジャッジ時間 3,597 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
70,904 KB
testcase_01 AC 72 ms
71,132 KB
testcase_02 AC 73 ms
71,148 KB
testcase_03 AC 74 ms
71,044 KB
testcase_04 AC 72 ms
71,264 KB
testcase_05 AC 72 ms
70,932 KB
testcase_06 AC 72 ms
71,380 KB
testcase_07 AC 73 ms
70,936 KB
testcase_08 AC 74 ms
70,988 KB
testcase_09 AC 74 ms
70,988 KB
testcase_10 AC 74 ms
71,148 KB
testcase_11 AC 72 ms
71,012 KB
testcase_12 AC 74 ms
71,016 KB
testcase_13 AC 74 ms
71,148 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python

n = int(input())

for i in range(1, n//2+1):
    if i & (i-1) == 0:
        continue
    elif n-i & (n-i-1) != 0:
        print(i, n-i)
        exit()
print('-1')
0