結果
| 問題 | No.638 Sum of "not power of 2" | 
| コンテスト | |
| ユーザー |  c-yan | 
| 提出日時 | 2020-11-02 01:05:52 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 34 ms / 1,000 ms | 
| コード長 | 233 bytes | 
| コンパイル時間 | 344 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 10,624 KB | 
| 最終ジャッジ日時 | 2024-07-22 06:06:36 | 
| 合計ジャッジ時間 | 1,622 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 12 | 
ソースコード
N = int(input())
x = 1
ng = set()
while x < 104127350297911241532841:
    ng.add(x)
    x *= 2
for a in range(1, min(100, N)):
    b = N - a
    if a in ng or b in ng:
        continue
    print(a, b)
    break
else:
    print(-1)
            
            
            
        