結果

問題 No.638 Sum of "not power of 2"
ユーザー convexineqconvexineq
提出日時 2020-11-22 06:31:46
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 73 ms / 1,000 ms
コード長 158 bytes
コンパイル時間 271 ms
コンパイル使用メモリ 86,964 KB
実行使用メモリ 71,576 KB
最終ジャッジ日時 2023-09-30 22:31:08
合計ジャッジ時間 2,034 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,516 KB
testcase_01 AC 72 ms
71,268 KB
testcase_02 AC 71 ms
71,224 KB
testcase_03 AC 70 ms
71,476 KB
testcase_04 AC 71 ms
71,268 KB
testcase_05 AC 70 ms
71,440 KB
testcase_06 AC 72 ms
71,116 KB
testcase_07 AC 71 ms
71,528 KB
testcase_08 AC 73 ms
71,328 KB
testcase_09 AC 73 ms
71,484 KB
testcase_10 AC 72 ms
71,416 KB
testcase_11 AC 72 ms
71,212 KB
testcase_12 AC 73 ms
71,300 KB
testcase_13 AC 73 ms
71,576 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
s = {1<<i for i in range(62)}
for i in range(1,n):
    if i not in s and n-i not in s:
        print(i,n-i)
        break
else:
    print(-1)
0