結果

問題 No.638 Sum of "not power of 2"
ユーザー ntuda
提出日時 2024-05-27 15:54:11
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 215 bytes
コンパイル時間 346 ms
コンパイル使用メモリ 82,428 KB
実行使用メモリ 53,036 KB
最終ジャッジ日時 2024-12-20 20:32:52
合計ジャッジ時間 1,504 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 11 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
x = 1
S = {x}
while x << 1 < N:
    x <<= 1
    S.add(x)
if N < 6:
    print(-1)
for i in range(3,N):
    if i in S:
        continue
    if N - i in S:
        continue
    print(i,N-i)
    exit()
0