結果
| 問題 | No.638 Sum of "not power of 2" | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2018-11-14 13:27:57 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                TLE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 246 bytes | 
| コンパイル時間 | 106 ms | 
| コンパイル使用メモリ | 12,288 KB | 
| 実行使用メモリ | 100,224 KB | 
| 最終ジャッジ日時 | 2024-12-24 13:38:03 | 
| 合計ジャッジ時間 | 9,366 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 8 TLE * 4 | 
ソースコード
n = int(input())
nl = [2**i for i in range(int(n**0.5)+1)]
l = []
for i in range(1, n):
    x = i
    y = n - i
    if not x in nl and not y in nl:
        l.append(x)
l = sorted(l)
if len(l) == 0:
    print(-1)
else:
    print(l[0], n - l[0])
            
            
            
        