結果
| 問題 | No.638 Sum of "not power of 2" | 
| コンテスト | |
| ユーザー |  brthyyjp | 
| 提出日時 | 2020-06-29 08:00:51 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 251 bytes | 
| コンパイル時間 | 345 ms | 
| コンパイル使用メモリ | 81,920 KB | 
| 実行使用メモリ | 52,224 KB | 
| 最終ジャッジ日時 | 2024-07-18 03:39:31 | 
| 合計ジャッジ時間 | 1,398 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 8 WA * 4 | 
ソースコード
n = int(input())
i = 0
S = []
while 2**i <= n:
    S.append(2**i)
    i += 1
T = set(S)
for a in S:
    b = n-a
    T.add(b)
if len(T) == n-1:
    print(-1)
    exit()
for i in range(1, n+1):
    if i not in T:
        print(i, n-i)
        exit()
            
            
            
        