結果
| 問題 | No.638 Sum of "not power of 2" | 
| コンテスト | |
| ユーザー |  convexineq | 
| 提出日時 | 2020-11-22 06:31:46 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 39 ms / 1,000 ms | 
| コード長 | 158 bytes | 
| コンパイル時間 | 176 ms | 
| コンパイル使用メモリ | 82,152 KB | 
| 実行使用メモリ | 52,352 KB | 
| 最終ジャッジ日時 | 2024-07-23 16:17:55 | 
| 合計ジャッジ時間 | 1,337 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 12 | 
ソースコード
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)
            
            
            
        