結果
| 問題 | No.638 Sum of "not power of 2" | 
| コンテスト | |
| ユーザー |  tails1434 | 
| 提出日時 | 2020-01-30 07:31:43 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 40 ms / 1,000 ms | 
| コード長 | 329 bytes | 
| コンパイル時間 | 222 ms | 
| コンパイル使用メモリ | 82,320 KB | 
| 実行使用メモリ | 52,224 KB | 
| 最終ジャッジ日時 | 2024-09-16 03:17:15 | 
| 合計ジャッジ時間 | 1,376 ms | 
| ジャッジサーバーID (参考情報) | judge6 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 12 | 
ソースコード
def main():
    N = int(input())
    c = [0]
    for i in range(100):
        c.append(2 ** i)
    for i in range(N // 2 + 2):
        if i in c:
            continue
        elif N - i in c:
            continue
        else:
            print(i, N - i)
            exit()
    print(-1)
if __name__ == "__main__":
    main()
            
            
            
        