結果
| 問題 | No.638 Sum of "not power of 2" | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2018-01-30 15:59:43 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 46 ms / 1,000 ms | 
| コード長 | 186 bytes | 
| コンパイル時間 | 390 ms | 
| コンパイル使用メモリ | 82,560 KB | 
| 実行使用メモリ | 51,968 KB | 
| 最終ジャッジ日時 | 2024-12-30 02:57:26 | 
| 合計ジャッジ時間 | 2,169 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 12 | 
ソースコード
#!/usr/bin/env python
n = int(input())
for i in range(1, n//2+1):
    if i & (i-1) == 0:
        continue
    elif n-i & (n-i-1) != 0:
        print(i, n-i)
        exit()
print('-1')
            
            
            
        