結果
| 問題 | No.638 Sum of "not power of 2" | 
| コンテスト | |
| ユーザー |  toyuzuko | 
| 提出日時 | 2020-07-31 23:28:05 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 24 ms / 1,000 ms | 
| コード長 | 200 bytes | 
| コンパイル時間 | 140 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 10,624 KB | 
| 最終ジャッジ日時 | 2024-07-06 21:40:29 | 
| 合計ジャッジ時間 | 1,373 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 12 | 
ソースコード
N = int(input())
S = set()
for i in range(64):
    S.add(2**i)
a = 1
while a < N:
    b = N - a
    if a in S or b in S:
        a += 1
        continue
    print(a, b)
    break
else:
    print(-1)
            
            
            
        